示例#1
0
 public void TestCommonTypes()
 {
     foreach (var t in _expectedTypes)
     {
         var foundType = MimeTypes.GetMimeMapping(t.Key);
         Assert.AreEqual(t.Value, foundType, "Mime string mismatch");
     }
 }
示例#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");
     }
 }