updated history table

This commit is contained in:
kay.one
2013-06-08 23:20:38 -07:00
parent 8467349305
commit ca71025bca
13 changed files with 139 additions and 57 deletions
@@ -3,8 +3,6 @@ using FizzWare.NBuilder;
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Core.History;
using NzbDrone.Core.Qualities;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Test.Framework;
namespace NzbDrone.Core.Test.HistoryTests
@@ -30,5 +28,18 @@ namespace NzbDrone.Core.Test.HistoryTests
AllStoredModels.Should().HaveCount(10);
AllStoredModels.Should().OnlyContain(s => s.Date > DateTime.Now.AddDays(-30));
}
[Test]
public void should_read_write_dictionary()
{
var history = Builder<History.History>.CreateNew().BuildNew();
history.Data.Add("key1","value1");
history.Data.Add("key2","value2");
Subject.Insert(history);
StoredModel.Data.Should().HaveCount(2);
}
}
}