public void TestIsValidFileTypeMethodWithValidFile() { Assert.IsTrue(TextExtractor.IsValidFileType(@"Documents\Valid.docx")); }
public void TestIsValidFileTypeMethodWithInvalidFile() { Assert.IsFalse(TextExtractor.IsValidFileType(@"Documents\Invalid.docx")); }
public void TestIsValidFileTypeMethodWithMissingFile() { Assert.ThrowsException <FileNotFoundException>( () => TextExtractor.IsValidFileType(string.Empty) ); }
public void TestIsValidFileTypeMethodWithMissingBytes() { Assert.IsFalse(TextExtractor.IsValidFileType(new byte[] { })); }
public void TestIsValidFileTypeMethodWithMissingStream() { Assert.IsFalse(TextExtractor.IsValidFileType(new MemoryStream())); }
public void TestIsValidFileTypeMethodWithUndefinedBytes() { Assert.ThrowsException <ArgumentNullException>( () => TextExtractor.IsValidFileType((byte[])null) ); }