public void IfTrue_WithFalse_DoNotCallFunctT_ReturnDefaultT() { MockClass1 result = false.IfTrue(x => new MockClass1()); Assert.IsTrue(result == default(MockClass1)); }
public void IfTrue_WithTrue_CallFunctT() { MockClass1 result = true.IfTrue(x => new MockClass1()); Assert.IsNotNull(result); }
public void IfFalse_WithTrue_CallFunctT_ReturnDefault() { MockClass1 result = true.IfFalse(x => new MockClass1()); Assert.IsTrue(result == default(MockClass1)); }
public void IfTrue_WithFalse_DoNotCallFuncT() { MockClass1 result = false.IfTrue(x => { Assert.Fail(); return(new MockClass1()); }); }
public void IfFalse_WithFalse_CallFunctT() { MockClass1 result = false.IfFalse(x => new MockClass1()); Assert.IsNotNull(result); }