public void TestLargest_02() { MethodLibrary.MethodLibrary obj = new MethodLibrary.MethodLibrary(); int[] a = { 4, 3, 6 }; int expectedResult = 6; int actualResult = obj.Largest(a); Assert.AreEqual(expectedResult, actualResult); }
public void TestLargest_03() { Exception ExceptedException = null; try { MethodLibrary.MethodLibrary obj = new MethodLibrary.MethodLibrary(); int[] a = { }; int expectedResult = 961611; int actualResult = obj.Largest(a); Assert.AreEqual(expectedResult, actualResult); } catch (Exception ex) { ExceptedException = ex; } Assert.IsNotNull(ExceptedException); }