mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
More cleanup of Skippers
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user