mirror of
https://github.com/Radarr/Radarr
synced 2025-01-01 04:45:35 +00:00
fixed ShouldBeEquivalentTo tests
This commit is contained in:
parent
3f3cc69da7
commit
e53513a575
4 changed files with 6 additions and 6 deletions
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue