Example #1
0
 public void TestCommonTypes()
 {
     foreach (var t in _expectedTypes)
     {
         var foundType = MimeTypes.GetMimeMapping(t.Key);
         Assert.AreEqual(t.Value, foundType, "Mime string mismatch");
     }
 }
Example #2
0
 public void TestCommonTypesAsFilePaths()
 {
     foreach (var t in _expectedTypes)
     {
         var filePath  = Path.Combine(Path.GetTempPath(), "examplefile." + t.Key);
         var foundType = MimeTypes.GetMimeMapping(t.Key);
         Assert.AreEqual(t.Value, foundType, "Mime string mismatch");
     }
 }