Shouldly
Search
⌃
K
Overview
Contributing
Documentation
Getting Started
Configuration
Equality
ShouldBe
NotBe
Null
Bool
Flags
AssignableTo
OfType
OneOf
Greater/Less Than
InRange
MatchApproved
Enumerable
SameAs
String
ExampleClasses
String
Enumerable
Dictionary
Exceptions
SatisfyAllConditions
CompleteIn
DynamicShould
Upgrade 3 to 4
Powered By
GitBook
AssignableTo
var
theSimpsonsDog
=
new
Person
{
Name
=
"Santas little helper"
};
theSimpsonsDog
.
ShouldBeAssignableTo
<
Pet
>
();
snippet source
|
anchor
Exception
theSimpsonsDog
should be assignable to
Simpsons.Pet
but was
Simpsons.Person
Previous
Flags
Next
OfType
Last modified
5mo ago