示例#1
0
        public void GetContentTypeFromFileTypeTest()
        {
            string filename = "My Girl.doc";
            string expected = "application/msword";
            string actual;

            actual = MimeTypeMap.GetContentTypeFromFileType(filename);
            Assert.AreEqual(expected, actual);
        }