More cleanup of Skippers

This commit is contained in:
Matt Nadareski
2020-07-30 22:32:16 -07:00
parent a4b2a4ff17
commit b43997065c
4 changed files with 483 additions and 260 deletions

View File

@@ -38,6 +38,23 @@ namespace SabreTools.Library.Skippers
#endregion
/// <summary>
/// Check if a Stream passes all tests in the SkipperRule
/// </summary>
/// <param name="input">Stream to check</param>
/// <returns>True if all tests passed, false otherwise</returns>
public bool PassesAllTests(Stream input)
{
bool success = true;
foreach (SkipperTest test in Tests)
{
bool result = test.Passes(input);
success &= result;
}
return success;
}
/// <summary>
/// Transform an input file using the given rule
/// </summary>