public void MincostTicketsTest_Return6() { // arrange var LCSolution = new LCProgram(); var expected = 6; // act int[] days = new int[12] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 30, 31 }; int[] costs = new int[3] { 7, 2, 15 }; var actual = LCSolution.MincostTickets(days, costs); // assert Assert.AreEqual(expected, actual); }
public void MincostTicketsTest_Return11() { // arrange var LCSolution = new LCProgram(); var expected = 11; // act int[] days = new int[6] { 1, 4, 6, 7, 8, 20 }; int[] costs = new int[3] { 2, 7, 15 }; var actual = LCSolution.MincostTickets(days, costs); // assert Assert.AreEqual(expected, actual); }