예제 #1
0
        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));
            }
        }
예제 #2
0
        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));
            }
        }