public void Test_Each_Normal()
        {
            EachSpecification s = new EachSpecification(new PredicateSpecification <int>(delegate(int i) { return(i > 0); }));

            Assert.IsFalse(s.Test(new int[] { 0, 1, 2 }).Success);
            Assert.IsTrue(s.Test(new int[] { 1, 2, 3 }).Success);
        }
        public void Test_Each_InvalidType()
        {
            // cannot test a non-enumerable object
            EachSpecification s = new EachSpecification(AlwaysTrue);

            s.Test(new object());
        }
		public void Test_Each_Empty()
		{
			EachSpecification s1 = new EachSpecification(AlwaysFalse);
			Assert.IsTrue(s1.Test(new object[0]).Success);

			EachSpecification s2 = new EachSpecification(AlwaysTrue);
			Assert.IsTrue(s2.Test(new object[0]).Success);
		}
        public void Test_Each_Empty()
        {
            EachSpecification s1 = new EachSpecification(AlwaysFalse);

            Assert.IsTrue(s1.Test(new object[0]).Success);

            EachSpecification s2 = new EachSpecification(AlwaysTrue);

            Assert.IsTrue(s2.Test(new object[0]).Success);
        }
		public void Test_Each_InvalidType()
		{
			// cannot test a non-enumerable object
			EachSpecification s = new EachSpecification(AlwaysTrue);
			s.Test(new object());
		}
		public void Test_Each_Normal()
		{
			EachSpecification s = new EachSpecification(new PredicateSpecification<int>(delegate(int i) { return i > 0; }));
			Assert.IsFalse(s.Test(new int[] { 0, 1, 2 }).Success);
			Assert.IsTrue(s.Test(new int[] { 1, 2, 3 }).Success);
		}