diff --git a/Testing/Basic/Homework/1. ObjectComparison/ObjectComparison.cs b/Testing/Basic/Homework/1. ObjectComparison/ObjectComparison.cs index c7d4564..1336281 100644 --- a/Testing/Basic/Homework/1. ObjectComparison/ObjectComparison.cs +++ b/Testing/Basic/Homework/1. ObjectComparison/ObjectComparison.cs @@ -16,7 +16,7 @@ public void CheckCurrentTsar() new Person("Vasili III of Russia", 28, 170, 60, null)); actualTsar.Should().BeEquivalentTo(expectedTsar, options => options - .Excluding(x => x.DeclaringType == typeof(Person) && x.Path.Contains("Id"))); + .Excluding(x => x.DeclaringType == typeof(Person) && x.Name == "Id")); } [Test]