public void ShouldReturnICharacterFromFlyingSquirrel() { ICharacter rocky = new FlyingSquirrelAdapter(new FlyingSquirrel()); Assert.Equal(1, rocky.Attack()); Assert.Equal(20, rocky.Chase()); Assert.Equal(20, rocky.Flee()); }
public void FlyingSquirrelAdapter_Chase() { // Arrange ICharacter rocky = new FlyingSquirrelAdapter(new FlyingSquirrel()); var expected = 20; // Action var actual = rocky.Chase(); // Assert Assert.AreEqual(expected, actual); }