예제 #1
0
 public void CheckIfSymmetric_Source_IsNull_Throw_ArgumentNullException()
 {
     int[] source = null;
     Assert.Throws <ArgumentNullException>(() => ArrayHelper.CheckIfSymmetric(source), $"{nameof(source)} cannot be null.");
 }
예제 #2
0
 public void CheckIfSymmetric_Source_IsEmptyArray_Throw_ArgumentException()
 {
     int[] source = { };
     Assert.Throws <ArgumentException>(() => ArrayHelper.CheckIfSymmetric(source), $"{nameof(source)} cannot be empty.");
 }
예제 #3
0
 public string CheckIfSymmetricTests(int[] source) => ArrayHelper.CheckIfSymmetric(source);