public override void OneTimeSetup() { _stringLengthAttributeRelayInstanceType = typeof(StringLengthAttributeRelay); _stringLengthAttributeRelayInstanceFixture = this.Create <StringLengthAttributeRelay>(true); _stringLengthAttributeRelayInstance = _stringLengthAttributeRelayInstanceFixture ?? this.Create <StringLengthAttributeRelay>(false); CurrentInstance = _stringLengthAttributeRelayInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_StringLengthAttributeRelay_Instantiated_Without_Parameter_No_Throw_Exception_Test() { // Arrange StringLengthAttributeRelay instance = null; // Act var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance); // Assert instance.ShouldNotBeNull(); exception.ShouldBeNull(); }