Last updated 2 years ago
var theSimpsonsDog = new Person { Name = "Santas little helper" }; theSimpsonsDog.ShouldBeAssignableTo<Pet>();
|
Exception
theSimpsonsDog should be assignable to Simpsons.Pet but was Simpsons.Person