Пример #1
0
 public void NotReturnsNullIfFunctionReturnsFalse()
 {
     Assert.IsNotNull(ExpirationPolicy.Custom(() => false));
 }
Пример #2
0
 public void ReturnsNullIfFunctionIsNull()
 {
     Assert.IsNull(ExpirationPolicy.Custom(null));
 }
Пример #3
0
 public void NotReturnsNullIfFunctionIsNullIfForceIsEqualsTrue()
 {
     Assert.IsNotNull(ExpirationPolicy.Custom(null, null, true));
 }
Пример #4
0
 public void ReturnsNullIfFunctionReturnsTrue()
 {
     Assert.IsNull(ExpirationPolicy.Custom(() => true));
 }