public void AllowsNullRefReturnValue() { var sample = new ClassWithRefReturns(); var ret = sample.GetNullRef(); Assert.Null(ret); }
public void RequiresNonNullRefReturnValue() { var sample = new ClassWithRefReturns(); var exception = Assert.Throws <InvalidOperationException>(() => { sample.GetNonNullRef(); }); }