Exemple #1
0
 public void GetErrorBySendInvalidFileName()
 {
     using (var fileStream = File.Open("./Files/file", FileMode.Open)) {
         var fileFormat = new FileFormat(fileStream);
         Assert.ThrowsException <FileFormatException>(() => fileFormat.MappingName());
     }
 }
        public void GetErrorBySendInvalidFilePath()
        {
            var fileFormat = new FileFormat("file");

            Assert.ThrowsException <FileFormatException>(() => fileFormat.MappingName());
        }
        public void GetErrorBySendNotSupportedFile()
        {
            var fileFormat = new FileFormat("file.not");

            Assert.ThrowsException <FileFormatException>(() => fileFormat.MappingName());
        }