Exemple #1
0
        public void Should_throw_when_expectation_is_null()
        {
            // Arrange
            IExpectation expectation = null;

            // Act & assert
            Assert.Throws <ArgumentNullException>(() => _expectationExpression.Add(expectation));
        }
Exemple #2
0
 public void SetUp()
 {
     _expectationExpression = new ExpectationExpression <TaskController>(x => x.LongRunningJsonAction());
     _expectationExpression.Add(new HasTypeExpectation <DenyInternetExplorerPolicy>());
 }
Exemple #3
0
 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>());
 }