コード例 #1
0
        public void Test_Not_AllTrue()
        {
            NotSpecification s = new NotSpecification();

            s.Add(AlwaysTrue);
            s.Add(AlwaysTrue);
            Assert.IsFalse(s.Test(null).Success);
        }
コード例 #2
0
		public void Test_Not_Degenerate()
		{
			// TODO: this is the current behaviour - perhaps it should throw an exception instead
			NotSpecification s = new NotSpecification();
			Assert.IsFalse(s.Test(null).Success);
		}
コード例 #3
0
		public void Test_Not_Mixed()
		{
			NotSpecification s = new NotSpecification();
			s.Add(AlwaysFalse);
			s.Add(AlwaysTrue);
			Assert.IsTrue(s.Test(null).Success);
		}