public void False_and_true_pipes_returns_false_on_check() { var pipe = new CompositePipe(new TruePipe(), new FalsePipe(), new TruePipe()); for (int i = 0; i < 20; i++) { Assert.False(pipe.Check(i)); } }
public void True_only_pipes_returns_true_on_check() { var pipe = new CompositePipe(new TruePipe(), new TruePipe(), new TruePipe()); for (int i = 0; i < 20; i++) { Assert.True(pipe.Check(i)); } }