Пример #1
0
        public void ExcelConvertor_ToExcel_MissingFile(string file)
        {
            var ec       = new ExcelConvertor();
            var settings = new ExcelConvertorSettings
            {
                MandatoryColumns = new[] { "id", "wholesale", "UPC Code 1" }
            };

            Should.Throw <ArgumentException>(() => ec.ToJson(file, settings));
        }
Пример #2
0
        public void ExcelConvertor_ToExcel_EmptyFile(string file)
        {
            var ec = new ExcelConvertor();

            Should.Throw <ArgumentException>(() => ec.ToJson(file, null));
        }