I would like to know how can I check if an object inherits from another class using Fluent Assertions?
I know I can do that with xUnit using IsAssignableFrom
, like so:
[Fact]
public void CreateBossEnemy()
{
//arrange
EnemyFactory sut = new EnemyFactory();
//action
var enemy = sut.Create("Zombie King", true);
//assert
Assert.IsAssignableFrom<Enemy>(enemy);
}
What would be the equivalent of IsAssignableFrom
for Fluent Assertions?