public override void OneTimeSetup() { _minAndMaxLengthAttributeRelayInstanceType = typeof(MinAndMaxLengthAttributeRelay); _minAndMaxLengthAttributeRelayInstanceFixture = this.Create <MinAndMaxLengthAttributeRelay>(true); _minAndMaxLengthAttributeRelayInstance = _minAndMaxLengthAttributeRelayInstanceFixture ?? this.Create <MinAndMaxLengthAttributeRelay>(false); CurrentInstance = _minAndMaxLengthAttributeRelayInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_MinAndMaxLengthAttributeRelay_Instantiated_Without_Parameter_No_Throw_Exception_Test() { // Arrange MinAndMaxLengthAttributeRelay instance = null; // Act var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance); // Assert instance.ShouldNotBeNull(); exception.ShouldBeNull(); }