Пример #1
0
        public void Constructor_with_passed_full_type()
        {
            var type = new MimeContentType("image/jpeg");

            Assert.AreEqual("image", type.MajorType);
            Assert.AreEqual("jpeg", type.MinorType);
            Assert.AreEqual("image/jpeg", type.Full);
        }
Пример #2
0
 public MimeType(string name, IList<string> extensions, string mimeType)
 {
     Name = name;
     Extensions = extensions;
     ContentType = new MimeContentType(mimeType);
 }