public void TestFile(string type, FileType expectedFileType, bool expectedResult) { var path = BaseTest.GetFilesPath() + "test_file_" + type; var testResult = MimeChecker.Check(path, expectedFileType); Assert.AreEqual(expectedResult, testResult); }
public BaseTest() { MimeChecker = new MimeChecker(); SolutionPath = BaseTest.GetFilesPath(); }