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