public void NotReturnsNullIfFunctionReturnsFalse() { Assert.IsNotNull(ExpirationPolicy.Custom(() => false)); }
public void ReturnsNullIfFunctionIsNull() { Assert.IsNull(ExpirationPolicy.Custom(null)); }
public void NotReturnsNullIfFunctionIsNullIfForceIsEqualsTrue() { Assert.IsNotNull(ExpirationPolicy.Custom(null, null, true)); }
public void ReturnsNullIfFunctionReturnsTrue() { Assert.IsNull(ExpirationPolicy.Custom(() => true)); }