예제 #1
0
        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);
        }