예제 #1
0
        public void There_is_a_desired_destination()
        {
            var alwaysMoving = new AlwaysMoving();
            var check        = DestinationCheck.Against(alwaysMoving);

            Assert.IsTrue(check.PlayerMovedLastFrame());
            var destination = check.DesiredDestination();

            Assert.AreEqual(
                alwaysMoving.Destination,
                destination);
        }
예제 #2
0
        public void The_desired_destination_is_in_the_string_representation()
        {
            var alwaysMoving   = new AlwaysMoving();
            var check          = DestinationCheck.Against(alwaysMoving);
            var expectedString = "{"
                                 + "PlayerMovedLastFrame="
                                 + check.PlayerMovedLastFrame()
                                 + ", DesiredDestination="
                                 + check.DesiredDestination()
                                 + "}";

            Assert.AreEqual(expectedString, check.ToString());
        }