Shouldly
Search…
AssignableTo
1
var theSimpsonsDog = new Person { Name = "Santas little helper" };
2
theSimpsonsDog.ShouldBeAssignableTo<Pet>();
Copied!
Exception
1
theSimpsonsDog
2
should be assignable to
3
Simpsons.Pet
4
but was
5
Simpsons.Person
Copied!
Last modified 1yr ago
Copy link