protected AssertExportedFileContainsText ( string filePath, string text ) : void | ||
filePath | string | |
text | string | |
Résultat | void |
protected void AssertExportedFileContainsText(string filePath, string text)
{
var fullPath = Path.Combine(_exportPath, filePath);
Assert.True(File.Exists(fullPath));
Assert.Contains(text, File.ReadAllText(fullPath));
}