You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to compare AST and found that BeEquivalentTo has no option to instruct the library to check types on comparing. For example, I expect the way to modify the following test code to fail because of class names do not match. This behavior should be recursive (so if property value does not have exactly the same type, comparison should fail). I see that stackoverflow has a question on this.
classOneThing{publicstringName=>"Test";}classOtherThing{publicstringName=>"Test";}[TestMethod]publicvoidMyTestMethod(){newOneThing().Should().BeEquivalentTo(newOtherThing(), o =>o.RespectingRuntimeTypes());}
arnileibovits, aayjaychan, BrunoJuchli, jez9999 and julealgon