Exemplo n.º 1
0
		public void Test_IsSatisfiedBy_IsNull()
		{
			var sc = new SearchCondition<object>();
			sc.IsNull();

			Assert.IsTrue(sc.IsSatisfiedBy(null));
			Assert.IsFalse(sc.IsSatisfiedBy(new object()));
		}
Exemplo n.º 2
0
		public void Test_IsSatisfiedBy_IsNull_Null()
		{
			var sc = new SearchCondition<object>();
			//expect same behaviour as SQL
			sc.IsNull();
			Assert.IsTrue(sc.IsSatisfiedBy(null));
		}
Exemplo n.º 3
0
		public void Test_IsNull()
		{
			var sc = new SearchCondition<object>();
			sc.IsNull();

			Assert.AreEqual(0, sc.Values.Length);
			Assert.AreEqual(SearchConditionTest.Null, sc.Test);
		}