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