Esempio n. 1
0
 public MockFoozzing <T> Build()
 {
     return(new MockFoozzing <T>
     {
         _voidVoid = _voidVoid,
         _responseTaskVoid = _responseTaskVoid,
         _paramType = _paramType,
         _paramGeneric = _paramGeneric,
         _paramTypeResponseTask = _paramTypeResponseTask,
         _paramTuple = _paramTuple,
         _paramTypeGeneric = _paramTypeGeneric,
         _responseGeneric = _responseGeneric,
         _responseType = _responseType,
         _responseTaskGeneric = _responseTaskGeneric,
         _responseTaskType = _responseTaskType,
         _paramTypeResponseTaskType = _paramTypeResponseTaskType,
         _paramTupleResponseType = _paramTupleResponseType,
         _funcTaskGeneric = _funcTaskGeneric,
         _funcTaskGenericResponseTaskGeneric = _funcTaskGenericResponseTaskGeneric,
         _sameNameDifParamsInt = _sameNameDifParamsInt,
         _sameNameDifParamsDouble = _sameNameDifParamsDouble,
         _actionGenericResponseActionGeneric = _actionGenericResponseActionGeneric,
         _actionTypeResponseActionType = _actionTypeResponseActionType,
         ,
     });
        public void ShouldValidateTheVariables()
        {
            //Arrange
            ClassVariableTypeValidation classVariableTypeValidation = new ClassVariableTypeValidation()
                                                                      .FieldShouldBeType <MockMethodWithParam <string> >("_paramMethod")
                                                                      .FieldShouldBeType <MockMethodWithResponse <bool> >("_responseMethod");

            //Act
            MockMethodWithParamAndResponse <string, bool> subject
                = new MockMethodWithParamAndResponse <string, bool>("hah");

            //Assert
            classVariableTypeValidation.AssertFieldsAreExpectedType(subject);
        }