public void CheckIfPointerYIsSetCorrectlyAfterPointerInitialization() { Pointer pointer = new Pointer(5, 11); pointer.Y = 7; Assert.AreEqual(pointer.Y == 7, true, string.Format("Expected pointer with Y=7. Received pointer with Y={0}", pointer.Y)); }
public void CheckIfPointerThrowsCorrectExeptionWhenIncorrectYIsSetAfterPointerCreation() { Pointer pointer = new Pointer(5, -11); }
public void CheckIfPointerIsInitializedCorrectWithGiveXandY() { Pointer pointer = new Pointer(5, 11); Assert.AreEqual((pointer.X == 5 && pointer.Y == 11), true, string.Format("Expected pointer with X=5 and Y=11. Received pointer with X={0} and Y={1}", pointer.X, pointer.Y)); }