コード例 #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));
        }