internal TestExpectClause(T actionContainer,
                           IWhenActionWrapper actionUnderTest,
                           IEnumerable <IParameterActionWrapper> parameterActions)
 {
     _actionContainer  = actionContainer;
     _actionUnderTest  = actionUnderTest;
     _parameterActions = parameterActions;
 }
Пример #2
0
 internal TestShouldClause(T actionContainer,
                           IWhenActionWrapper actionUnderTest,
                           IEnumerable <IParameterActionWrapper> parameterActions,
                           IEnumerable <IDependencyActionWrapper> dependencyActions)
 {
     _actionContainer   = actionContainer;
     _actionUnderTest   = actionUnderTest;
     _parameterActions  = parameterActions;
     _dependencyActions = dependencyActions;
     _performAction     = (T item) => _actionUnderTest.Act();
 }
Пример #3
0
 internal TestWhenClause(T actionContainer, IWhenActionWrapper actionUnderTest)
 {
     _actionContainer = actionContainer;
     _actionUnderTest = actionUnderTest;
 }
Пример #4
0
 internal TestShouldClause(T actionContainer,
                           IWhenActionWrapper actionUnderTest,
                           IEnumerable <IParameterActionWrapper> parameterActions)
     : this(actionContainer, actionUnderTest, parameterActions, new List <IDependencyActionWrapper>())
 {
 }