public void AUT_Reporting_CanProcessFile_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodCanProcessFilePrametersTypes = new Type[] { typeof(SPWeb), typeof(SPListItem), typeof(XmlDocument) };
            const int parametersCount = 3;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_reportingInstanceFixture, _reportingInstanceType, MethodCanProcessFile, Fixture, methodCanProcessFilePrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodCanProcessFilePrametersTypes.Length.ShouldBe(parametersCount);
        }
        public void AUT_EditableFieldDisplay_getFieldSchemaAttribValue_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodgetFieldSchemaAttribValuePrametersTypes = new Type[] { typeof(string), typeof(string) };
            const int parametersCount = 2;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_editableFieldDisplayInstanceFixture, _editableFieldDisplayInstanceType, MethodgetFieldSchemaAttribValue, Fixture, methodgetFieldSchemaAttribValuePrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodgetFieldSchemaAttribValuePrametersTypes.Length.ShouldBe(parametersCount);
        }
        public void AUT_ListFieldIteratorExtensions_GetFormFields_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodGetFormFieldsPrametersTypes = new Type[] { typeof(ListFieldIterator) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(null, _listFieldIteratorExtensionsInstanceType, MethodGetFormFields, Fixture, methodGetFormFieldsPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetFormFieldsPrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#4
0
        public void AUT_AssociatedListItems_GetFancyFormAssociatedItemAttachments_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodGetFancyFormAssociatedItemAttachmentsPrametersTypes = new Type[] { typeof(string), typeof(SPWeb) };
            const int parametersCount = 2;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_associatedListItemsInstanceFixture, _associatedListItemsInstanceType, MethodGetFancyFormAssociatedItemAttachments, Fixture, methodGetFancyFormAssociatedItemAttachmentsPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetFancyFormAssociatedItemAttachmentsPrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#5
0
        public void AUT_Vb_Left_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodLeftPrametersTypes = new Type[] { typeof(string), typeof(int) };
            const int parametersCount          = 2;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_vbInstanceFixture, _vbInstanceType, MethodLeft, Fixture, methodLeftPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodLeftPrametersTypes.Length.ShouldBe(parametersCount);
        }
        public void AUT_WorkspaceCenter_GetWorkSpaceCenterLayout_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodGetWorkSpaceCenterLayoutPrametersTypes = new Type[] { typeof(string) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_workspaceCenterInstanceFixture, _workspaceCenterInstanceType, MethodGetWorkSpaceCenterLayout, Fixture, methodGetWorkSpaceCenterLayoutPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetWorkSpaceCenterLayoutPrametersTypes.Length.ShouldBe(parametersCount);
        }
        public void AUT_DataCacheAPI_SerializeToBinary_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodSerializeToBinaryPrametersTypes = new Type[] { typeof(object) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_dataCacheAPIInstanceFixture, _dataCacheAPIInstanceType, MethodSerializeToBinary, Fixture, methodSerializeToBinaryPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodSerializeToBinaryPrametersTypes.Length.ShouldBe(parametersCount);
        }
        public void AUT_EpmChartUserSettingsToPersonalizationDataMapper_GetPersonalizationData_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodGetPersonalizationDataPrametersTypes = new Type[] { typeof(EpmChartUserSettings) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_epmChartUserSettingsToPersonalizationDataMapperInstanceFixture, _epmChartUserSettingsToPersonalizationDataMapperInstanceType, MethodGetPersonalizationData, Fixture, methodGetPersonalizationDataPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetPersonalizationDataPrametersTypes.Length.ShouldBe(parametersCount);
        }
        public void AUT_ViewPermissionUtil_IsViewAllowed_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodIsViewAllowedPrametersTypes = new Type[] { typeof(Dictionary <int, string>), typeof(int), typeof(string) };
            const int parametersCount = 3;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_viewPermissionUtilInstanceFixture, _viewPermissionUtilInstanceType, MethodIsViewAllowed, Fixture, methodIsViewAllowedPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodIsViewAllowedPrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#10
0
        public void AUT_ListImportJob_getAttribute_Static_Method_Call_Dynamic_Invoking_Results_Null_If_Not_Primitive_Type_Test()
        {
            // Arrange
            this.ValidateExecuteCondition(MethodgetAttribute);
            var methodgetAttributePrametersTypes = new Type[] { typeof(XmlNode), typeof(string) };

            // Act
            var result = ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_listImportJobInstanceFixture, _listImportJobInstanceType, MethodgetAttribute, Fixture, methodgetAttributePrametersTypes);

            // Assert
            result.ShouldBeNull();
            methodgetAttributePrametersTypes.Length.ShouldBe(2);
        }
示例#11
0
        public void AUT_Rollupexport_StrToByteArray_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodStrToByteArrayPrametersTypes = new Type[] { typeof(string) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_rollupexportInstanceFixture, _rollupexportInstanceType, MethodStrToByteArray, Fixture, methodStrToByteArrayPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodStrToByteArrayPrametersTypes.Length.ShouldBe(parametersCount);
        }
        public void AUT_EpmChartSeriesToVisifireChartSeriesMapper_GetVisifireChartSeries_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodGetVisifireChartSeriesPrametersTypes = new Type[] { typeof(EpmChartDataSeriesList) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(null, _epmChartSeriesToVisifireChartSeriesMapperInstanceType, MethodGetVisifireChartSeries, Fixture, methodGetVisifireChartSeriesPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetVisifireChartSeriesPrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#13
0
        public void AUT_ListDisplayUtils_ConvertFromString_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodConvertFromStringPrametersTypes = new Type[] { typeof(string) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_listDisplayUtilsInstanceFixture, _listDisplayUtilsInstanceType, MethodConvertFromString, Fixture, methodConvertFromStringPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodConvertFromStringPrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#14
0
        public void AUT_CamlComparisonOperator_GetCamlOperatorByValue_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodGetCamlOperatorByValuePrametersTypes = new Type[] { typeof(string) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_camlComparisonOperatorInstanceFixture, _camlComparisonOperatorInstanceType, MethodGetCamlOperatorByValue, Fixture, methodGetCamlOperatorByValuePrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetCamlOperatorByValuePrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#15
0
        public void AUT_HtmlColorService_GetRandomHtmlColor_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            Type []   methodGetRandomHtmlColorPrametersTypes = null;
            const int parametersCount = 0;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(null, _htmlColorServiceInstanceType, MethodGetRandomHtmlColor, Fixture, methodGetRandomHtmlColorPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetRandomHtmlColorPrametersTypes.ShouldBeNull();
        }
示例#16
0
        public void AUT_Rates_SaveRatesInfo_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodSaveRatesInfoPrametersTypes = new Type[] { typeof(HttpContext), typeof(CStruct) };
            const int parametersCount = 2;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_ratesInstanceFixture, _ratesInstanceType, MethodSaveRatesInfo, Fixture, methodSaveRatesInfoPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodSaveRatesInfoPrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#17
0
        public void AUT_HtmlColorService_RandomNumber_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodRandomNumberPrametersTypes = new Type[] { typeof(int), typeof(int) };
            const int parametersCount = 2;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(null, _htmlColorServiceInstanceType, MethodRandomNumber, Fixture, methodRandomNumberPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodRandomNumberPrametersTypes.Length.ShouldBe(parametersCount);
        }
        public void AUT_EpmChartDataSeriesList_GetZAxisColorMap_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodGetZAxisColorMapPrametersTypes = new Type[] { typeof(DataTable), typeof(DataColumn) };
            const int parametersCount = 2;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_epmChartDataSeriesListInstanceFixture, _epmChartDataSeriesListInstanceType, MethodGetZAxisColorMap, Fixture, methodGetZAxisColorMapPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetZAxisColorMapPrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#19
0
        public void AUT_EPMLiveScriptManager_GetFileVersion_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            Type []   methodGetFileVersionPrametersTypes = null;
            const int parametersCount = 0;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_ePMLiveScriptManagerInstanceFixture, _ePMLiveScriptManagerInstanceType, MethodGetFileVersion, Fixture, methodGetFileVersionPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetFileVersionPrametersTypes.ShouldBeNull();
        }
        public void AUT_EpmChartDataSeriesList_ParseValue_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodParseValuePrametersTypes = new Type[] { typeof(string) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_epmChartDataSeriesListInstanceFixture, _epmChartDataSeriesListInstanceType, MethodParseValue, Fixture, methodParseValuePrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodParseValuePrametersTypes.Length.ShouldBe(parametersCount);
        }
        public void AUT_DataCacheAPI_GetCachedData_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodGetCachedDataPrametersTypes = new Type[] { typeof(HttpContext), typeof(string) };
            const int parametersCount = 2;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_dataCacheAPIInstanceFixture, _dataCacheAPIInstanceType, MethodGetCachedData, Fixture, methodGetCachedDataPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetCachedDataPrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#22
0
        public void AUT_RecentItems_IsValidList_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodIsValidListPrametersTypes = new Type[] { typeof(AnalyticsData) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_recentItemsInstanceFixture, _recentItemsInstanceType, MethodIsValidList, Fixture, methodIsValidListPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodIsValidListPrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#23
0
        public void AUT_ChartWizardDataGrid_GetGridParam_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodGetGridParamPrametersTypes = new Type[] { typeof(XDocument) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_chartWizardDataGridInstanceFixture, _chartWizardDataGridInstanceType, MethodGetGridParam, Fixture, methodGetGridParamPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetGridParamPrametersTypes.Length.ShouldBe(parametersCount);
        }
        public void AUT_EPKClass01_GetTableAndField_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodGetTableAndFieldPrametersTypes = new Type[] { typeof(int), typeof(int), typeof(string), typeof(string) };
            const int parametersCount = 4;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_ePKClass01InstanceFixture, _ePKClass01InstanceType, MethodGetTableAndField, Fixture, methodGetTableAndFieldPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetTableAndFieldPrametersTypes.Length.ShouldBe(parametersCount);
        }
        public void AUT_EditableFieldDisplay_canEdit_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodcanEditPrametersTypes = new Type[] { typeof(SPField), typeof(Dictionary <string, Dictionary <string, string> >), typeof(SPListItem) };
            const int parametersCount             = 3;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_editableFieldDisplayInstanceFixture, _editableFieldDisplayInstanceType, MethodcanEdit, Fixture, methodcanEditPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodcanEditPrametersTypes.Length.ShouldBe(parametersCount);
        }
        public void AUT_PFEDataServiceUtils_ConvertDateStringToJsonDate_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodConvertDateStringToJsonDatePrametersTypes = new Type[] { typeof(System.Text.RegularExpressions.Match) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_pFEDataServiceUtilsInstanceFixture, _pFEDataServiceUtilsInstanceType, MethodConvertDateStringToJsonDate, Fixture, methodConvertDateStringToJsonDatePrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodConvertDateStringToJsonDatePrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#27
0
        public void AUT_MyWorkSummaryListItems_GetMyWorkSummary_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodGetMyWorkSummaryPrametersTypes = new Type[] { typeof(string) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_myWorkSummaryListItemsInstanceFixture, _myWorkSummaryListItemsInstanceType, MethodGetMyWorkSummary, Fixture, methodGetMyWorkSummaryPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetMyWorkSummaryPrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#28
0
        public void AUT_RPConstants_StripNum_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodStripNumPrametersTypes = new Type[] { typeof(string) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(null, _rPConstantsInstanceType, MethodStripNum, Fixture, methodStripNumPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodStripNumPrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#29
0
        public void AUT_EPKRequest_HandleException_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodHandleExceptionPrametersTypes = new Type[] { typeof(Exception) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_ePKRequestInstanceFixture, _ePKRequestInstanceType, MethodHandleException, Fixture, methodHandleExceptionPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodHandleExceptionPrametersTypes.Length.ShouldBe(parametersCount);
        }
示例#30
0
        public void AUT_LookupFilterHelper_GetLookupValuesQuery_Static_Method_Call_Dynamic_Invoking_Should_Not_Throw_Test()
        {
            // Arrange
            var       methodGetLookupValuesQueryPrametersTypes = new Type[] { typeof(IEnumerable) };
            const int parametersCount = 1;

            // Act
            Action currentAction = () => ReflectionAnalyzer.InvokeStaticMethodWithDynamicParameters(_lookupFilterHelperInstanceFixture, _lookupFilterHelperInstanceType, MethodGetLookupValuesQuery, Fixture, methodGetLookupValuesQueryPrametersTypes);

            // Assert
            Should.NotThrow(currentAction);
            methodGetLookupValuesQueryPrametersTypes.Length.ShouldBe(parametersCount);
        }