public void Test_Any_Normal()
		{
			AnySpecification s = new AnySpecification(new PredicateSpecification<int>(delegate(int i) { return i > 0; }));
			Assert.IsFalse(s.Test(new int[] { 0, 0, 0 }).Success);
			Assert.IsTrue(s.Test(new int[] { 0, 0, 1 }).Success);
			Assert.IsTrue(s.Test(new int[] { 1, 1, 1 }).Success);
		}
        public void Test_Any_Normal()
        {
            AnySpecification s = new AnySpecification(new PredicateSpecification <int>(delegate(int i) { return(i > 0); }));

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

            s.Test(new object());
        }
		public void Test_Any_Empty()
		{
			AnySpecification s1 = new AnySpecification(AlwaysFalse);
			Assert.IsFalse(s1.Test(new object[0]).Success);

			AnySpecification s2 = new AnySpecification(AlwaysTrue);
			Assert.IsFalse(s2.Test(new object[0]).Success);
		}
        public void Test_Any_Empty()
        {
            AnySpecification s1 = new AnySpecification(AlwaysFalse);

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

            AnySpecification s2 = new AnySpecification(AlwaysTrue);

            Assert.IsFalse(s2.Test(new object[0]).Success);
        }
		public void Test_Any_InvalidType()
		{
			// cannot test a non-enumerable object
			AnySpecification s = new AnySpecification(AlwaysTrue);
			s.Test(new object());
		}