示例#1
0
        public void Test_And_Degenerate()
        {
            // TODO: this is the current behaviour - perhaps it should throw an exception instead
            AndSpecification s = new AndSpecification();

            Assert.IsTrue(s.Test(null).Success);
        }
		public void Test_And_Mixed()
		{
			AndSpecification s = new AndSpecification();
			s.Add(AlwaysFalse);
			s.Add(AlwaysTrue);
			Assert.IsFalse(s.Test(null).Success);
		}
		public void Test_And_AllTrue()
		{
			AndSpecification s = new AndSpecification();
			s.Add(AlwaysTrue);
			s.Add(AlwaysTrue);
			Assert.IsTrue(s.Test(null).Success);
		}
示例#4
0
        public void Test_And_Mixed()
        {
            AndSpecification s = new AndSpecification();

            s.Add(AlwaysFalse);
            s.Add(AlwaysTrue);
            Assert.IsFalse(s.Test(null).Success);
        }
示例#5
0
        public void Test_And_AllTrue()
        {
            AndSpecification s = new AndSpecification();

            s.Add(AlwaysTrue);
            s.Add(AlwaysTrue);
            Assert.IsTrue(s.Test(null).Success);
        }
		public void Test_And_Degenerate()
		{
			// TODO: this is the current behaviour - perhaps it should throw an exception instead
			AndSpecification s = new AndSpecification();
			Assert.IsTrue(s.Test(null).Success);
		}