Beispiel #1
0
 public void NotASquareArrrayThrowsArgumentException()
 {
     Assert.ThrowsException <ArgumentException>(() =>
     {
         List <List <int> > array = AbsoluteDiagonalsOfAnArrayTestData.NotASquareArray();
         int result = AbsoulteDiagonalsOfAnArray.DiagonalDifference(array);
     });
 }
Beispiel #2
0
        public void BadArrayLengthData()
        {
            List <List <int> > array = AbsoluteDiagonalsOfAnArrayTestData.BadArrayLengthData();

            Assert.ThrowsException <ArgumentException>(() =>
            {
                int result = AbsoulteDiagonalsOfAnArray.DiagonalDifference(array);
            });
        }
Beispiel #3
0
        public void BadSquareLengthParameterThrowsArgumentException()
        {
            List <List <int> > array = AbsoluteDiagonalsOfAnArrayTestData
                                       .BadSquareLengthIndicatorParameter();

            Assert.ThrowsException <ArgumentException>(() =>
            {
                int result = AbsoulteDiagonalsOfAnArray.DiagonalDifference(array);
            });
        }
Beispiel #4
0
 public static IEnumerable <object[]> GetData()
 {
     return(AbsoluteDiagonalsOfAnArrayTestData.Data());
 }