public void Filter_AfterSortDescByDate_Test() { var args = new string[] { "--sort", "date", "desc" }; var result = FilterTestsOfStudent.Filter(_testArray, args); CollectionAssert.AreEqual(result, _expectedArrayAfterSortDescByDate); }
public void Filter_AfterTestMathFlagFlag_Test() { var args = new string[] { "--test", "Math" }; var result = FilterTestsOfStudent.Filter(_testArray, args); CollectionAssert.AreEqual(result, _expectedArrayAfterTestMathFlag); }
public void Filter_AfterSortAscByMark_Test() { var args = new string[] { "--sort", "mark", "asc" }; var result = FilterTestsOfStudent.Filter(_testArray, args); CollectionAssert.AreEqual(result, _expectedArrayAfterSortAscByMark); }
public void Filter_AfterDateToFlag_Test() { var args = new string[] { "--dateto", "01/01/2019" }; var result = FilterTestsOfStudent.Filter(_testArray, args); CollectionAssert.AreEqual(result, _expectedArrayAfterDateToFlag); }
public void Filter_AfterMaxMarkThreeFlag_Test() { var args = new string[] { "--maxmark", "3" }; var result = FilterTestsOfStudent.Filter(_testArray, args); CollectionAssert.AreEqual(result, _expectedArrayAfterMaxMarkThreeFlag); }
public void Filter_AfterNameIvanFlag_Test() { var args = new string[] { "--name", "Ivan" }; var result = FilterTestsOfStudent.Filter(_testArray, args); CollectionAssert.AreEqual(result, _expectedArrayAfterNameIvanFlag); }
public void Filter_ArgumentException_Test() { var args = new string[] { "--sort", "fffff", "sfsfsfs" }; Assert.Throws <ArgumentException>(() => FilterTestsOfStudent.Filter(_testArray, args)); }
public void Filter_ArgumentNullException_Test() { var args = new string[] { "--minmark", "3" }; Assert.Throws <ArgumentNullException>(() => FilterTestsOfStudent.Filter(null, args)); }