public void ConditionalExpression() { var throwExpressionService = new ThrowExpressionsService("someService", "String is not hello"); Assert.Throws(typeof(Exception), () => throwExpressionService.SafeDouble(int.MaxValue)); Assert.Throws(typeof(Exception), () => throwExpressionService.BetterSafeDouble(int.MaxValue)); Assert.Equal(false, throwExpressionService.SomeStringEqualsHello); }
public void WorksAsNormal() { var service = new ThrowExpressionsService("someService", "someString"); Assert.Equal("someService", service._someService); }