public void TestMimeTypeLookupToGetExtensions() { var expected = new[] { KnownMimeTypes.FileExtensions.Json, KnownMimeTypes.FileExtensions.Map, KnownMimeTypes.FileExtensions.Topojson }; var actual = MimeUtility.GetExtensions(KnownMimeTypes.Json); Assert.IsTrue(actual.All(x => expected.Contains(x))); var @null = MimeUtility.GetExtensions("invalid"); Assert.IsNull(@null); }