Пример #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);
		}