コード例 #1
0
        public void ShouldReturn_DiagonalValues_AsTupleArray()
        {
            var MatrixCal = new MatrixCal(3, 3, MockUp.Input);

            var(X, Y) = MatrixCal.SelectDiagonal();

            CollectionAssert.AreEqual(X, MockUp.ExpectedDiagonalX);
            CollectionAssert.AreEqual(Y, MockUp.ExpectedDiagonalY);
        }
コード例 #2
0
 public void ShouldReturn_IntArrayForString()
 {
     CollectionAssert.AreEqual(MatrixCal.SplitToInt(""), new int[0]);
     CollectionAssert.AreEqual(MatrixCal.SplitToInt("1 20 35"), new int[] { 1, 20, 35 });
 }