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()); }
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(); }); }