Example #1
0
        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);
        }
Example #2
0
 public BaseTest()
 {
     MimeChecker  = new MimeChecker();
     SolutionPath = BaseTest.GetFilesPath();
 }