public void IsOpenXml_EmptyString_ReturnsFalse() { string filename = string.Empty; const bool expected = false; bool result = ExcelFileType.IsOpenXml(filename); result.Should().Be(expected); }
public void IsOpenXml_xlsxExtensionUppercase_ReturnsTrue() { string filename = "file.XLSX"; const bool expected = true; bool result = ExcelFileType.IsOpenXml(filename); result.Should().Be(expected); }
public void IsOpenXml_xlsExtensionLowercase_ReturnsFalse() { string filename = "file.xls"; const bool expected = false; bool result = ExcelFileType.IsOpenXml(filename); result.Should().Be(expected); }
public void IsOpenXml_NonExcelExtension_ReturnsFalse() { string filename = "file.txt"; const bool expected = false; bool result = ExcelFileType.IsOpenXml(filename); result.Should().Be(expected); }