1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-01-01 04:45:35 +00:00

fixed ShouldBeEquivalentTo tests

This commit is contained in:
kayone 2014-08-24 18:45:44 -07:00
parent 3f3cc69da7
commit e53513a575
4 changed files with 6 additions and 6 deletions

View file

@ -62,9 +62,9 @@ public void should_be_able_to_delete_model()
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]

View file

@ -90,7 +90,7 @@ public void one_to_one()
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]

View file

@ -24,7 +24,7 @@ public void should_read_write_download_provider()
var storedSetting = (NewznabSettings)storedProvider.Settings;
storedSetting.ShouldBeEquivalentTo(newznabSettings);
storedSetting.ShouldBeEquivalentTo(newznabSettings, o=>o.IncludingAllRuntimeProperties());
}
}
}

View file

@ -23,7 +23,7 @@ public void should_be_able_to_deserialize_numbers()
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());
}
}
}