public void AUT_ConstructorMethod_Constructor_Instantiation_With_Parameter_Test() { // Arrange var constructor = this.CreateType <ConstructorInfo>(); ConstructorMethod instance = null; Exception creationException = null; // Act Action createAction = () => instance = new ConstructorMethod(constructor); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _constructorMethodInstance.ShouldNotBeNull(); _constructorMethodInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_ElementsBuilder_Constructor_Instantiation_With_Parameter_Test() { // Arrange var elements = this.CreateType <dynamic[]>(); ElementsBuilder <dynamic> instance = null; Exception creationException = null; // Act Action createAction = () => instance = new ElementsBuilder <dynamic>(elements); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _elementsBuilderInstance.ShouldNotBeNull(); _elementsBuilderInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_QueryByIdSerializedResponse_Constructor_Instantiation_With_Parameter_Test() { // Arrange var QueryByIdSerializedResult = this.CreateType <string>(); QueryByIdSerializedResponse instance = null; Exception creationException = null; // Act Action createAction = () => instance = new QueryByIdSerializedResponse(QueryByIdSerializedResult); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _queryByIdSerializedResponseInstance.ShouldNotBeNull(); _queryByIdSerializedResponseInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_WEPeopleQuery_Constructor_Instantiation_With_Parameter_Test() { // Arrange var _CurrentWeb = CreateType <Guid>(); WEPeopleQuery instance = null; Exception creationException = null; // Act Action createAction = () => instance = new WEPeopleQuery(_CurrentWeb); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _wEPeopleQueryInstance.ShouldNotBeNull(); _wEPeopleQueryInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_NoAutoPropertiesCustomization_Constructor_Instantiation_With_Parameter_Test() { // Arrange var targetType = this.CreateType <Type>(); NoAutoPropertiesCustomization instance = null; Exception creationException = null; // Act Action createAction = () => instance = new NoAutoPropertiesCustomization(targetType); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _noAutoPropertiesCustomizationInstance.ShouldNotBeNull(); _noAutoPropertiesCustomizationInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_SeededRequest_Constructor_Instantiation_With_Parameter_Test() { // Arrange var request = this.CreateType <object>(); var seed = this.CreateType <object>(); SeededRequest instance = null; Exception creationException = null; // Act Action createAction = () => instance = new SeededRequest(request, seed); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _seededRequestInstance.ShouldNotBeNull(); _seededRequestInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_PFEException_Constructor_Instantiation_With_Parameter_Test() { // Arrange var exceptionNumber = CreateType <int>(); var message = CreateType <string>(); PFEException instance = null; Exception creationException = null; // Act Action createAction = () => instance = new PFEException(exceptionNumber, message); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _pFEExceptionInstance.ShouldNotBeNull(); _pFEExceptionInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_ResourceStrings_Constructor_Instantiation_With_Parameter_Test() { // Arrange var feature = CreateType <EPMLiveFeatureList>(); var lcid = CreateType <string>(); ResourceStrings instance = null; Exception creationException = null; // Act Action createAction = () => instance = new ResourceStrings(feature, lcid); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _resourceStringsInstance.ShouldNotBeNull(); _resourceStringsInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_FilteringSpecimenBuilder_Constructor_Instantiation_With_Parameter_Test() { // Arrange var builder = this.CreateType <ISpecimenBuilder>(); var specification = this.CreateType <IRequestSpecification>(); FilteringSpecimenBuilder instance = null; Exception creationException = null; // Act Action createAction = () => instance = new FilteringSpecimenBuilder(builder, specification); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _filteringSpecimenBuilderInstance.ShouldNotBeNull(); _filteringSpecimenBuilderInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_InstanceMethod_Constructor_Instantiation_With_Parameter_Test() { // Arrange var instanceMethod = this.CreateType <MethodInfo>(); var owner = this.CreateType <object>(); InstanceMethod instance = null; Exception creationException = null; // Act Action createAction = () => instance = new InstanceMethod(instanceMethod, owner); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _instanceMethodInstance.ShouldNotBeNull(); _instanceMethodInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_QueryByNameSerializedRequest_Constructor_Instantiation_With_Parameter_Test() { // Arrange var p_strToken = this.CreateType <string>(); var p_strName = this.CreateType <string>(); QueryByNameSerializedRequest instance = null; Exception creationException = null; // Act Action createAction = () => instance = new QueryByNameSerializedRequest(p_strToken, p_strName); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _queryByNameSerializedRequestInstance.ShouldNotBeNull(); _queryByNameSerializedRequestInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_GenericMethod_Constructor_Instantiation_With_Parameter_Test() { // Arrange var method = this.CreateType <MethodInfo>(); var factory = this.CreateType <IMethodFactory>(); GenericMethod instance = null; Exception creationException = null; // Act Action createAction = () => instance = new GenericMethod(method, factory); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _genericMethodInstance.ShouldNotBeNull(); _genericMethodInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_TraceWriter_Constructor_Instantiation_With_Parameter_Test() { // Arrange var writer = this.CreateType <TextWriter>(); var tracer = this.CreateType <TracingBuilder>(); TraceWriter instance = null; Exception creationException = null; // Act Action createAction = () => instance = new TraceWriter(writer, tracer); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _traceWriterInstance.ShouldNotBeNull(); _traceWriterInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_TypeRelay_Constructor_Instantiation_With_Parameter_Test() { // Arrange var from = this.CreateType <Type>(); var to = this.CreateType <Type>(); TypeRelay instance = null; Exception creationException = null; // Act Action createAction = () => instance = new TypeRelay(from, to); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _typeRelayInstance.ShouldNotBeNull(); _typeRelayInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_ExcelConnectionUpdatorService_Constructor_Instantiation_With_Parameter_Test() { // Arrange var connectionInfo = CreateType <ExcelConnectionInfo>(); var sharepointService = CreateType <ISharepointService>(); ExcelConnectionUpdatorService instance = null; Exception creationException = null; // Act Action createAction = () => instance = new ExcelConnectionUpdatorService(connectionInfo, sharepointService); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _excelConnectionUpdatorServiceInstance.ShouldNotBeNull(); _excelConnectionUpdatorServiceInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_ConstructorCustomization_Constructor_Instantiation_With_Parameter_Test() { // Arrange var targetType = this.CreateType <Type>(); var query = this.CreateType <IMethodQuery>(); ConstructorCustomization instance = null; Exception creationException = null; // Act Action createAction = () => instance = new ConstructorCustomization(targetType, query); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _constructorCustomizationInstance.ShouldNotBeNull(); _constructorCustomizationInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_ParameterSpecification_Constructor_Instantiation_With_Parameter_Test() { // Arrange var targetType = this.CreateType <Type>(); var targetName = this.CreateType <string>(); ParameterSpecification instance = null; Exception creationException = null; // Act Action createAction = () => instance = new ParameterSpecification(targetType, targetName); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _parameterSpecificationInstance.ShouldNotBeNull(); _parameterSpecificationInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_PropertySpecification_Constructor_With_Parameter_Created_Instance_Type_Test() { // Arrange var targetType = this.CreateType <Type>(); var targetName = this.CreateType <string>(); PropertySpecification instance = null; Exception creationException = null; // Act Action createAction = () => instance = new PropertySpecification(targetType, targetName); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _propertySpecificationInstance.ShouldNotBeNull(); _propertySpecificationInstanceFixture.ShouldNotBeNull(); instance.ShouldBeOfType <PropertySpecification>(); }
public void AUT_FiniteSequenceRequest_Constructor_Instantiation_With_Parameter_Test() { // Arrange var request = this.CreateType <object>(); var count = this.CreateType <int>(); FiniteSequenceRequest instance = null; Exception creationException = null; // Act Action createAction = () => instance = new FiniteSequenceRequest(request, count); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _finiteSequenceRequestInstance.ShouldNotBeNull(); _finiteSequenceRequestInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_JobStepAttribute_Constructor_Instantiation_With_Parameter_Test() { // Arrange var parentJob = CreateType <string>(); var sequence = CreateType <double>(); JobStepAttribute instance = null; Exception creationException = null; // Act Action createAction = () => instance = new JobStepAttribute(parentJob, sequence); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _jobStepAttributeInstance.ShouldNotBeNull(); _jobStepAttributeInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_BulkDeleteRequest_Constructor_With_Parameter_Created_Instance_Type_Test() { // Arrange var p_token = this.CreateType <UplandIntegrations.TenroxAssignmentService.UserToken>(); var p_intUniqueIds = this.CreateType <int[]>(); BulkDeleteRequest instance = null; Exception creationException = null; // Act Action createAction = () => instance = new BulkDeleteRequest(p_token, p_intUniqueIds); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _bulkDeleteRequestInstance.ShouldNotBeNull(); _bulkDeleteRequestInstanceFixture.ShouldNotBeNull(); instance.ShouldBeOfType <BulkDeleteRequest>(); }
public void AUT_ThrowingRecursionGuard_Constructor_Instantiation_With_Parameter_Test() { // Arrange var builder = this.CreateType <ISpecimenBuilder>(); var comparer = this.CreateType <IEqualityComparer>(); ThrowingRecursionGuard instance = null; Exception creationException = null; // Act Action createAction = () => instance = new ThrowingRecursionGuard(builder, comparer); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _throwingRecursionGuardInstance.ShouldNotBeNull(); _throwingRecursionGuardInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_FindSimpleUsersByNameResponse_Constructor_Instantiation_With_Parameter_Test() { // Arrange var FindSimpleUsersByNameResult = this.CreateType <UplandIntegrations.TenroxUserService.UserSimple[]>(); var totalRecords = this.CreateType <int>(); FindSimpleUsersByNameResponse instance = null; Exception creationException = null; // Act Action createAction = () => instance = new FindSimpleUsersByNameResponse(FindSimpleUsersByNameResult, totalRecords); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _findSimpleUsersByNameResponseInstance.ShouldNotBeNull(); _findSimpleUsersByNameResponseInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_DSMProgressChangedEventHandlerArgs_Constructor_With_Parameter_Created_Instance_Type_Test() { // Arrange var progressPercentage = CreateType <int>(); var userState = CreateType <object>(); DSMProgressChangedEventHandlerArgs instance = null; Exception creationException = null; // Act Action createAction = () => instance = new DSMProgressChangedEventHandlerArgs(progressPercentage, userState); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _dSMProgressChangedEventHandlerArgsInstance.ShouldNotBeNull(); _dSMProgressChangedEventHandlerArgsInstanceFixture.ShouldNotBeNull(); instance.ShouldBeOfType <DSMProgressChangedEventHandlerArgs>(); }
public void AUT_DeleteRequest_Constructor_Instantiation_With_Parameter_Test() { // Arrange var p_token = this.CreateType <UplandIntegrations.TenroxAssignmentService.UserToken>(); var p_intUniqueId = this.CreateType <int>(); DeleteRequest instance = null; Exception creationException = null; // Act Action createAction = () => instance = new DeleteRequest(p_token, p_intUniqueId); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _deleteRequestInstance.ShouldNotBeNull(); _deleteRequestInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_RequestTraceEventArgs_Constructor_Instantiation_With_Parameter_Test() { // Arrange var request = this.CreateType <object>(); var depth = this.CreateType <int>(); RequestTraceEventArgs instance = null; Exception creationException = null; // Act Action createAction = () => instance = new RequestTraceEventArgs(request, depth); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _requestTraceEventArgsInstance.ShouldNotBeNull(); _requestTraceEventArgsInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_BulkDeleteSerializedRequest_Constructor_Instantiation_With_Parameter_Test() { // Arrange var p_strToken = this.CreateType <string>(); var p_intUniqueIds = this.CreateType <int[]>(); BulkDeleteSerializedRequest instance = null; Exception creationException = null; // Act Action createAction = () => instance = new BulkDeleteSerializedRequest(p_strToken, p_intUniqueIds); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _bulkDeleteSerializedRequestInstance.ShouldNotBeNull(); _bulkDeleteSerializedRequestInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }
public void AUT_GetAllSimpleUsersResponse_Constructor_With_Parameter_Created_Instance_Type_Test() { // Arrange var GetAllSimpleUsersResult = this.CreateType <UplandIntegrations.TenroxUserService.UserSimple[]>(); var totalRecords = this.CreateType <int>(); GetAllSimpleUsersResponse instance = null; Exception creationException = null; // Act Action createAction = () => instance = new GetAllSimpleUsersResponse(GetAllSimpleUsersResult, totalRecords); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _getAllSimpleUsersResponseInstance.ShouldNotBeNull(); _getAllSimpleUsersResponseInstanceFixture.ShouldNotBeNull(); instance.ShouldBeOfType <GetAllSimpleUsersResponse>(); }
public void AUT_QueryByIdSerializedRequest_Constructor_With_Parameter_Created_Instance_Type_Test() { // Arrange var p_strToken = this.CreateType <string>(); var p_strId = this.CreateType <string>(); QueryByIdSerializedRequest instance = null; Exception creationException = null; // Act Action createAction = () => instance = new QueryByIdSerializedRequest(p_strToken, p_strId); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _queryByIdSerializedRequestInstance.ShouldNotBeNull(); _queryByIdSerializedRequestInstanceFixture.ShouldNotBeNull(); instance.ShouldBeOfType <QueryByIdSerializedRequest>(); }
public void AUT_APIException_Constructor_With_Parameter_Created_Instance_Type_Test() { // Arrange var exceptionNumber = CreateType <int>(); var message = CreateType <string>(); APIException instance = null; Exception creationException = null; // Act Action createAction = () => instance = new APIException(exceptionNumber, message); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _aPIExceptionInstance.ShouldNotBeNull(); _aPIExceptionInstanceFixture.ShouldNotBeNull(); instance.ShouldBeOfType <APIException>(); }