public void TestForNumberInput() { Indexer ind_obj = new Indexer(); bool wrongInput = ind_obj.CheckExtension("10"); Assert.AreEqual(wrongInput, false); }
public void TestForInvalidExtension() { string fileLocation = @"C:\Users\Sunkanmi\Documents\web pages(html)\Style.css"; Indexer ind_obj = new Indexer(); bool invalidExtension = ind_obj.CheckExtension(fileLocation); Assert.AreEqual(invalidExtension, false); }
public void TestForValidExtension() { string fileLocation = @"C:\Users\Sunkanmi\Documents\1) Uni files\300 level files\2nd Semester\CSC 322(C#)\Textbooks\VisualC2012HowtoProgramPaulDeitel-HarveyDeitel5thEditionPrenticeHall2014.pdf"; Indexer ind_obj = new Indexer(); bool validExtension = ind_obj.CheckExtension(fileLocation); Assert.AreEqual(validExtension, true); }
public void TestForBooleanInput() { //Still needs to be worked on. bool isWritingSomeCode = true; Indexer ind_obj = new Indexer(); bool wrongInput = ind_obj.CheckExtension(@"true"); Assert.AreEqual(wrongInput, false); }