Esempio n. 1
0
        public void IsBinary_xlsExtensionLowercase_ReturnsTrue()
        {
            string     filename = "file.xls";
            const bool expected = true;

            bool result = ExcelFileType.IsBinary(filename);

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

            bool result = ExcelFileType.IsBinary(filename);

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

            bool result = ExcelFileType.IsBinary(filename);

            result.Should().Be(expected);
        }
Esempio n. 4
0
        public void IsBinary_EmptyString_ReturnsFalse()
        {
            string     filename = string.Empty;
            const bool expected = false;

            bool result = ExcelFileType.IsBinary(filename);

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