Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [TestFixture]
- internal class VerboseCollectionAssertTests
- {
- [DebuggerDisplay("{" + nameof(Name) +"}")]
- class VerboseClass
- {
- public string Name { get; set; }
- public override string ToString()
- {
- return Name;
- }
- }
- [Test]
- public void CompareVerboseCollections()
- {
- var expectedCollection = new List<VerboseClass>
- {
- new VerboseClass{ Name = "ExpectedName1" },
- new VerboseClass{ Name = "ExpectedName2" },
- };
- var actualCollection = new List<VerboseClass>
- {
- new VerboseClass{ Name = "ActualName1" },
- new VerboseClass{ Name = "ActualName2" },
- };
- CollectionAssert.AreEquivalent(expectedCollection, actualCollection);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement