Example #1
0
        public void IsExcelFileExtension_NonExcelExtension_ReturnsFalse()
        {
            string     filename = "file.txt";
            const bool expected = false;

            bool result = ExcelFileType.IsExcelFileExtension(filename);

            result.Should().Be(expected);
        }
Example #2
0
        public void IsExcelFileExtension_xlsExtensionLowercase_ReturnsTrue()
        {
            string     filename = "file.xls";
            const bool expected = true;

            bool result = ExcelFileType.IsExcelFileExtension(filename);

            result.Should().Be(expected);
        }
Example #3
0
        public void IsExcelFileExtension_EmptyString_ReturnsFalse()
        {
            string     filename = string.Empty;
            const bool expected = false;

            bool result = ExcelFileType.IsExcelFileExtension(filename);

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