コード例 #1
0
ファイル: ObjectExtensionsTest.cs プロジェクト: 6/AndAnd.Net
        public void NullClass()
        {
            TestClass testClass = null;

            Assert.That(testClass.AndAnd().TestMethod1(), Is.Null);
            Assert.That(testClass.AndAnd().TestMethod2(), Is.Null);
        }
コード例 #2
0
ファイル: ObjectExtensionsTest.cs プロジェクト: 6/AndAnd.Net
        public void NonNullClass()
        {
            TestClass testClass = new TestClass();

            Assert.That(testClass.AndAnd().TestMethod1(), Is.Null);
            Assert.That(testClass.AndAnd().TestMethod2(), Is.EqualTo("non-null string"));
        }
コード例 #3
0
ファイル: ObjectExtensionsTest.cs プロジェクト: 6/AndAnd.Net
        public void NonNullInterface()
        {
            ITestInterface testInterface = new TestClass();

            Assert.That(testInterface.AndAnd().TestMethod1(), Is.Null);
            Assert.That(testInterface.AndAnd().TestMethod2(), Is.EqualTo("non-null string"));
        }
コード例 #4
0
ファイル: ObjectExtensionsTest.cs プロジェクト: 6/AndAnd.Net
 public void NonNullClass()
 {
     TestClass testClass = new TestClass();
     Assert.That(testClass.AndAnd().TestMethod1(), Is.Null);
     Assert.That(testClass.AndAnd().TestMethod2(), Is.EqualTo("non-null string"));
 }
コード例 #5
0
ファイル: ObjectExtensionsTest.cs プロジェクト: 6/AndAnd.Net
 public void NonNullInterface()
 {
     ITestInterface testInterface = new TestClass();
     Assert.That(testInterface.AndAnd().TestMethod1(), Is.Null);
     Assert.That(testInterface.AndAnd().TestMethod2(), Is.EqualTo("non-null string"));
 }