コード例 #1
0
ファイル: PointerTests.cs プロジェクト: huuuskyyy/Teamworks
        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));
        }
コード例 #2
0
ファイル: PointerTests.cs プロジェクト: huuuskyyy/Teamworks
 public void CheckIfPointerThrowsCorrectExeptionWhenIncorrectYIsSetAfterPointerCreation()
 {
     Pointer pointer = new Pointer(5, -11);
 }
コード例 #3
0
ファイル: PointerTests.cs プロジェクト: huuuskyyy/Teamworks
        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));
        }