C# Class Bellatrix.Assertions.FileAssert

Datei anzeigen Open project: AutomateThePlanet/BELLATRIX

Public Methods

Method Description
AssertTextFileContent ( FileInfo expectedFile, string actualFileContent ) : void

Assert text file(.txt).

AssertTextFiles ( FileInfo expectedFile, FileInfo actualFile ) : void

Assert 2 text files with extensions .txt, .csv, .docx, .odt. The two files should have same extensions.

Private Methods

Method Description
GetDifrences ( Array expectedTextFileLines, Array actualFileContentLines ) : List

Method Details

AssertTextFileContent() public static method

Assert text file(.txt).
public static AssertTextFileContent ( FileInfo expectedFile, string actualFileContent ) : void
expectedFile FileInfo Text File which content is expected.
actualFileContent string Actual file content.
return void

AssertTextFiles() public static method

Assert 2 text files with extensions .txt, .csv, .docx, .odt. The two files should have same extensions.
public static AssertTextFiles ( FileInfo expectedFile, FileInfo actualFile ) : void
expectedFile FileInfo Expected file.
actualFile FileInfo Actual file.
return void