fixed ShouldBeEquivalentTo tests

pull/3113/head
kayone 10 years ago
parent 3f3cc69da7
commit e53513a575

@ -62,9 +62,9 @@ namespace NzbDrone.Core.Test.Datastore
public void should_be_able_to_find_by_id()
{
Subject.Insert(_basicType);
Subject.Get(_basicType.Id)
.Should()
.ShouldBeEquivalentTo(_basicType);
var storeObject = Subject.Get(_basicType.Id);
storeObject.ShouldBeEquivalentTo(_basicType, o=>o.IncludingAllRuntimeProperties());
}
[Test]

@ -90,7 +90,7 @@ namespace NzbDrone.Core.Test.Datastore
loadedEpisodeFile.Should().NotBeNull();
loadedEpisodeFile.ShouldBeEquivalentTo(episodeFile,
options => options.Excluding(c => c.DateAdded).Excluding(c => c.Path));
options => options.Excluding(c => c.DateAdded).Excluding(c => c.Path).IncludingAllRuntimeProperties());
}
[Test]

@ -24,7 +24,7 @@ namespace NzbDrone.Core.Test.ThingiProvider
var storedSetting = (NewznabSettings)storedProvider.Settings;
storedSetting.ShouldBeEquivalentTo(newznabSettings);
storedSetting.ShouldBeEquivalentTo(newznabSettings, o=>o.IncludingAllRuntimeProperties());
}
}
}

@ -23,7 +23,7 @@ namespace NzbDrone.Libraries.Test.JsonTests
var quality = new TypeWithNumbers { Int32 = Int32.MaxValue, Int64 = Int64.MaxValue, nullableWithValue = 12 };
var result = Json.Deserialize<TypeWithNumbers>(quality.ToJson());
result.ShouldBeEquivalentTo(quality);
result.ShouldBeEquivalentTo(quality, o => o.IncludingAllRuntimeProperties());
}
}
}

Loading…
Cancel
Save