Skip to content

Commit

Permalink
Edit homework after second review
Browse files Browse the repository at this point in the history
  • Loading branch information
dmseul committed Nov 6, 2024
1 parent 3a8a7d7 commit e78c57f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FluentAssertions;
using FluentAssertions;
using NUnit.Framework;
using NUnit.Framework.Legacy;

Expand All @@ -15,7 +15,8 @@ public void CheckCurrentTsar()
var expectedTsar = new Person("Ivan IV The Terrible", 54, 170, 70,
new Person("Vasili III of Russia", 28, 170, 60, null));

actualTsar.Should().BeEquivalentTo(expectedTsar, options => options.Excluding(x => x.Path.Contains("Id")));
actualTsar.Should().BeEquivalentTo(expectedTsar, options => options
.Excluding(x => x.DeclaringType == typeof(Person) && x.Path.Contains("Id")));
}

[Test]
Expand Down

0 comments on commit e78c57f

Please sign in to comment.