コード例 #1
0
ファイル: SearchConditionTests.cs プロジェクト: nhannd/Xian
		public void Test_IsSatisfiedBy_IsNull()
		{
			var sc = new SearchCondition<object>();
			sc.IsNull();

			Assert.IsTrue(sc.IsSatisfiedBy(null));
			Assert.IsFalse(sc.IsSatisfiedBy(new object()));
		}
コード例 #2
0
ファイル: SearchConditionTests.cs プロジェクト: nhannd/Xian
		public void Test_IsSatisfiedBy_IsNull_Null()
		{
			var sc = new SearchCondition<object>();
			//expect same behaviour as SQL
			sc.IsNull();
			Assert.IsTrue(sc.IsSatisfiedBy(null));
		}
コード例 #3
0
ファイル: SearchConditionTests.cs プロジェクト: nhannd/Xian
		public void Test_IsNull()
		{
			var sc = new SearchCondition<object>();
			sc.IsNull();

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