public void Should_throw_when_expectation_is_null() { // Arrange IExpectation expectation = null; // Act & assert Assert.Throws <ArgumentNullException>(() => _expectationExpression.Add(expectation)); }
public void SetUp() { _expectationExpression = new ExpectationExpression <TaskController>(x => x.LongRunningJsonAction()); _expectationExpression.Add(new HasTypeExpectation <DenyInternetExplorerPolicy>()); }
public void SetUp() { _expectationExpression = new ExpectationExpression <SampleController>(x => x.VoidAction()); _expectationExpression.Add(new HasTypeExpectation <DenyInternetExplorerPolicy>()); }
public void SetUp() { _expectationExpression = new ExpectationExpression<TaskController>(x => x.LongRunningJsonAction()); _expectationExpression.Add(new HasTypeExpectation<DenyInternetExplorerPolicy>()); }