public void CheckIfOutOfMatrixNullTest() { int matrixSize = 4; Point point = null; OutOfMatrixChecker.CheckIfOutOfMatrix(point, matrixSize); }
public void CheckIfOutOfMatrixInvalidSizeTest() { int matrixSize = 0; Point point = new Point(2, 3); OutOfMatrixChecker.CheckIfOutOfMatrix(point, matrixSize); }
public void CheckIfOutOfMatrixFalseTest() { int matrixSize = 4; Point point = new Point(2, 3); Assert.IsFalse(OutOfMatrixChecker.CheckIfOutOfMatrix(point, matrixSize)); }
public void CheckIfOutOfMatrixTrueTest() { int matrixSize = 4; Point point = new Point(2, 4); Assert.IsTrue(OutOfMatrixChecker.CheckIfOutOfMatrix(point, matrixSize)); }
public void OutOfMatrixCheckerShouldRetrunFalseOnPointInsideMatrix() { this.point = new Point(3, 0); this.matrixLength = 4; Assert.AreEqual(false, OutOfMatrixChecker.CheckIfOutOfMatrix(point, matrixLength)); }
public void OutOfMatrixCheckerShouldRetrunTrueOnPointOutsideMatrix() { this.point = new Point(4, 0); this.matrixLength = 4; Assert.AreEqual(true, OutOfMatrixChecker.CheckIfOutOfMatrix(point, matrixLength)); }
public void OutOfMatrixCheckerShouldThrowExceptionOnNullPointPassed() { this.point = null; this.matrixLength = 16; OutOfMatrixChecker.CheckIfOutOfMatrix(point, matrixLength); }
public void OutOfMatrixCheckerShouldThrowExceptionOnZeroMatrixLengthPassed() { this.point = new Point(0, 0); this.matrixLength = 0; OutOfMatrixChecker.CheckIfOutOfMatrix(point, matrixLength); }