static void Main(string[] args) { Kangaroo kangaroo = new Kangaroo(); kangaroo.Run(); CamelCase camelCase = new CamelCase(); camelCase.Run(); StrongPassword strongPassword = new StrongPassword(); strongPassword.Run(); GradingStudents gradingStudents = new GradingStudents(); gradingStudents.Run(); IceCreamParlor iceCreamParlor = new IceCreamParlor(); iceCreamParlor.Run(); SockMerchant sockMerchant = new SockMerchant(); sockMerchant.Run(); RepeatedStrings repeatedStrings = new RepeatedStrings(); repeatedStrings.Run(); }
public void TestCase0() { int[] array = new int[] { 73, 67, 38, 33 }; int[] expected = new int[] { 75, 67, 40, 33 }; int[] result = GradingStudents.gradingStudents(array); CollectionAssert.AreEqual(expected, result); }
public void TestCase11() { int[] array = new int[] { 64, 24, 68, 14, 53, 49, 45, 99, 55, 24, 59, 67, 8, 76, 37, 24, 24, 73, 81, 37, 47, 63, 99, 63, 40, 54, 82, 9, 80, 84, 15, 32, 51, 18, 70, 4, 86, 59, 32, 68, 22, 1, 71, 51, 81, 22, 35, 65, 9, 17, 94, 69, 40, 39, 52, 94, 84, 13, 68, 95 }; int[] expected = new int[] { 65, 24, 70, 14, 55, 50, 45, 100, 55, 24, 60, 67, 8, 76, 37, 24, 24, 75, 81, 37, 47, 65, 100, 65, 40, 55, 82, 9, 80, 85, 15, 32, 51, 18, 70, 4, 86, 60, 32, 70, 22, 1, 71, 51, 81, 22, 35, 65, 9, 17, 95, 70, 40, 40, 52, 95, 85, 13, 70, 95 }; int[] result = GradingStudents.gradingStudents(array); CollectionAssert.AreEqual(expected, result); }
public void Round100GradeTest() { var array = new List <int> { 100 }; var result = GradingStudents.Round(array); Assert.IsTrue(result.Count == array.Count); Assert.AreEqual(100, result[0]); }
public void GradingStudentsShouldReturnActualGrades(int[] inputGrades, int[] expectedOutputGrades) { //Arrange //Act int[] actualGrades = GradingStudents.Start(inputGrades); //Assert Assert.AreEqual(expectedOutputGrades, actualGrades); }
public void Round37And38GradeTest() { var array = new List <int> { 37, 38 }; var result = GradingStudents.Round(array); Assert.IsTrue(result.Count == array.Count); Assert.AreEqual(37, result[0]); Assert.AreEqual(40, result[1]); }
static void gradingStudents() { Console.WriteLine("gradingStudents"); List <int> i = new List <int> { 73, 67, 38, 33 }; i = GradingStudents.gradingStudents(i); for (int ii = 0; ii < i.Count; ii++) { Console.WriteLine(i.ElementAt(ii)); } }
public void RoundGradeTest() { var array = new List <int> { 73, 67, 38, 33 }; var result = GradingStudents.Round(array); Assert.IsTrue(result.Count == array.Count); Assert.AreEqual(75, result[0]); Assert.AreEqual(67, result[1]); Assert.AreEqual(40, result[2]); Assert.AreEqual(33, result[3]); }
public void roundGrade_Test() { int newGrade = GradingStudents.roundGrade(73); Assert.AreEqual(75, newGrade); }