예제 #1
0
        public void NestedMethodOnNullReturnsDefault()
        {
            IContract1 target = null;
            // ReSharper disable once ExpressionIsAlwaysNull
            int answer = Safe.Call(target, t => t.GetContract2().GetAnswer());

            Assert.That(answer, Is.EqualTo(0));
        }
예제 #2
0
 public void ParamsWithCustomType2(IContract1 p1)
 {
     Assert.IsNotNull(p1);
 }
예제 #3
0
		public void ParamsWithCustomType2(IContract1 p1)
		{
			Assert.IsNotNull(p1);
		}