13 references to IfNull
Shared (7)
BufferWriterPool\BufferWriterPooledObjectPolicy.cs (1)
63_ = Throw.IfNull(obj);
Debugger\DebuggerExtensions.cs (3)
27_ = Throw.IfNull(services); 41_ = Throw.IfNull(services); 55_ = Throw.IfNull(services);
Memoization\MemoizedFunction.cs (2)
68_function = Throw.IfNull(function); 141_function = Throw.IfNull(function);
Pools\PoolFactory.cs (1)
57_ = Throw.IfNull(policy);
Shared.Tests (6)
Throw\ThrowTest.cs (6)
116var exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNull<string>(null!, "paramName")); 123var exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNull<int?>(null!, "paramName")); 131Assert.Equal(value, Throw.IfNull(value, nameof(value))); 138Assert.Equal(value, Throw.IfNull(value, nameof(value))); 146var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfNull(somethingThatIsNull)); 148var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfNull(somethingThatIsNull, nameof(somethingThatIsNull)));