コード例 #1
0
        public void The_desired_destination_is_not_in_the_string_representation()
        {
            var neverMoving    = new NeverMoving();
            var check          = DestinationCheck.Against(neverMoving);
            var expectedString = "{"
                                 + "PlayerMovedLastFrame="
                                 + check.PlayerMovedLastFrame()
                                 + "}";

            Assert.AreEqual(expectedString, check.ToString());
        }
コード例 #2
0
        public void There_is_no_desired_destination()
        {
            var neverMoving = new NeverMoving();
            var check       = DestinationCheck.Against(neverMoving);

            Assert.IsFalse(check.PlayerMovedLastFrame());
            Assert.Throws <InvalidOperationException>(() =>
            {
                check.DesiredDestination();
            });
        }