Esempio n. 1
0
        public void IsOpenXml_EmptyString_ReturnsFalse()
        {
            string     filename = string.Empty;
            const bool expected = false;

            bool result = ExcelFileType.IsOpenXml(filename);

            result.Should().Be(expected);
        }
Esempio n. 2
0
        public void IsOpenXml_xlsxExtensionUppercase_ReturnsTrue()
        {
            string     filename = "file.XLSX";
            const bool expected = true;

            bool result = ExcelFileType.IsOpenXml(filename);

            result.Should().Be(expected);
        }
Esempio n. 3
0
        public void IsOpenXml_xlsExtensionLowercase_ReturnsFalse()
        {
            string     filename = "file.xls";
            const bool expected = false;

            bool result = ExcelFileType.IsOpenXml(filename);

            result.Should().Be(expected);
        }
Esempio n. 4
0
        public void IsOpenXml_NonExcelExtension_ReturnsFalse()
        {
            string     filename = "file.txt";
            const bool expected = false;

            bool result = ExcelFileType.IsOpenXml(filename);

            result.Should().Be(expected);
        }