public override void OneTimeSetup() { _typeRelayInstanceType = typeof(TypeRelay); _typeRelayInstanceFixture = this.Create <TypeRelay>(true); _typeRelayInstance = _typeRelayInstanceFixture ?? this.Create <TypeRelay>(false); CurrentInstance = _typeRelayInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
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); }