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)); }
public void ParamsWithCustomType2(IContract1 p1) { Assert.IsNotNull(p1); }