Exemplo n.º 1
0
        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_Flee()
        {
            // Arrange
            ICharacter rocky    = new FlyingSquirrelAdapter(new FlyingSquirrel());
            var        expected = 20;

            // Action
            var actual = rocky.Flee();

            // Assert
            Assert.AreEqual(expected, actual);
        }