Exemple #1
0
 public override void OneTimeSetup()
 {
     _compositeMethodQueryInstanceType    = typeof(CompositeMethodQuery);
     _compositeMethodQueryInstanceFixture = this.Create <CompositeMethodQuery>(true);
     _compositeMethodQueryInstance        = _compositeMethodQueryInstanceFixture ?? this.Create <CompositeMethodQuery>(false);
     CurrentInstance = _compositeMethodQueryInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
Exemple #2
0
        public void AUT_CompositeMethodQuery_Constructor_Instantiation_With_Parameter_Test()
        {
            // Arrange
            var queries = this.CreateType <IEnumerable <IMethodQuery> >();
            CompositeMethodQuery instance          = null;
            Exception            creationException = null;

            // Act
            Action createAction = () => instance = new CompositeMethodQuery(queries);

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _compositeMethodQueryInstance.ShouldNotBeNull();
            _compositeMethodQueryInstanceFixture.ShouldNotBeNull();
            Should.NotThrow(createAction);
        }