fixed some issues here and there.

This commit is contained in:
kay.one 2013-05-10 22:59:42 -07:00
commit 85cd877b0c
12 changed files with 66 additions and 20 deletions

View file

@ -88,10 +88,18 @@ namespace NzbDrone.Core.Test.Datastore
}
[Test]
public void should_read_and_write_in_utc()
{
var storedTime = DateTime.UtcNow;
_sampleType.LastExecution =storedTime;
Subject.Insert(_sampleType);
StoredModel.LastExecution.Kind.Should().Be(DateTimeKind.Utc);
StoredModel.LastExecution.ToLongTimeString().Should().Be(storedTime.ToLongTimeString());
}
[Test]
public void should_have_id_when_returned_from_database()