Exemplo n.º 1
0
        public void EastDirection_has_correct_name()
        {
            // Act
            var direction = new EastDirection();

            // Assert
            Assert.AreEqual("East", direction.Direction, "The travel direction was not correctly assigned.");
        }
Exemplo n.º 2
0
        public void EastDirection_has_correct_reverse_direction()
        {
            // Arrange
            var direction = new EastDirection();

            // Act
            ITravelDirection reverseDirection = direction.GetOppositeDirection();

            // Assert
            Assert.AreEqual("West", reverseDirection.Direction, "The opposite travel direction was not correctly returned.");
        }