public override void OneTimeSetup() { _modestAttributeInstanceType = typeof(ModestAttribute); _modestAttributeInstanceFixture = this.Create <ModestAttribute>(true); _modestAttributeInstance = _modestAttributeInstanceFixture ?? this.Create <ModestAttribute>(false); CurrentInstance = _modestAttributeInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_ModestAttribute_Instantiated_Without_Parameter_No_Throw_Exception_Test() { // Arrange ModestAttribute instance = null; // Act var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance); // Assert instance.ShouldNotBeNull(); exception.ShouldBeNull(); }