public void Get_Implemented_Extension_ContentType_File()
        {
            IFileContentTypeManager manager = new FileContentTypeManager();

            var result = manager.GetContentTypeFromFileName("test.png");

            Assert.Equal("image/png", result);
        }
        public void Get_NotImplemented_Extension_ContentType_Empty()
        {
            IFileContentTypeManager manager = new FileContentTypeManager();

            Assert.Throws <NotImplementedException>(() => manager.GetContentTypeFromExtension(""));
        }
        public void Get_EmptyFileName_Extension_ContentType()
        {
            IFileContentTypeManager manager = new FileContentTypeManager();

            Assert.Throws <ArgumentException>(() => manager.GetContentTypeFromFileName(null));
        }
        public void Get_NotImplemented_Extension_ContentType_File()
        {
            IFileContentTypeManager manager = new FileContentTypeManager();

            Assert.Throws <NotImplementedException>(() => manager.GetContentTypeFromFileName("test.xml"));
        }