public void Problem001_Tests_4() { int x = -2147483648; int act = Problem007.Reverse(x); int exp = 0; Assert.Equal(exp, act); }
public void Problem001_Tests_1() { int x = 123; int act = Problem007.Reverse(x); int exp = 321; Assert.Equal(exp, act); }
public void Problem007() { var problem = new Problem007() { ConsoleOutput = false, DetailedOutput = false }; Assert.AreEqual(104743L, problem.Answer()); }
public void Problem007_Merge_Sorted_Array_Test_1() { int[] num1 = new int[] { 1, 2, 3 }; int[] num2 = new int[] { 2, 5, 6 }; int[] act = Problem007.MergeSortedArray(num1, num2); int[] excepted = new int[] { 1, 2, 2, 3, 5, 6 }; Assert.Equal(act, excepted); }
public void Problem007_Merge_Sorted_Array_Test_6() { int[] num1 = new int[] { 0 }; int[] num2 = new int[] { 1 }; int[] act = Problem007.MergeSortedArray(num1, num2); int[] excepted = new int[] { 0, 1 }; Assert.Equal(act, excepted); }
public void Problem007_Merge_Sorted_Array_Test_2() { int[] num1 = new int[] { -1, -2, -3 }; int[] num2 = new int[] { -2, -5, -6 }; int[] act = Problem007.MergeSortedArray(num1, num2); int[] excepted = new int[] { -6, -5, -3, -2, -2, -1 }; Assert.Equal(act, excepted); }
public void SolveTest() { string phrase = "I am a student."; Assert.AreEqual("student. a am I", Problem007.Solve(phrase)); }
public void IsCorrectProblem007() { var problem = new Problem007(); Assert.Equal(Answers["7"], problem.Solve()); }