public void TryFilesWhichWontWorkWithUrlmon(string filename, string mimetype) { var uri = filename.ToUri(); var urlmonMtUrlmon = new Urlmon().GetMimeTypeFor(uri); urlmonMtUrlmon.Should().NotBe(mimetype); urlmonMtUrlmon.Should().Be("application/octet-stream"); }
public void TryFilesWhichWorkWithUrlmon(string filename, string mimetype) { var uri = filename.ToUri(); var urlmonMtUrlmon = new Urlmon().GetMimeTypeFor(uri); urlmonMtUrlmon.Should().Be(mimetype); }