public override void OneTimeSetup() { _greedyAttributeInstanceType = typeof(GreedyAttribute); _greedyAttributeInstanceFixture = this.Create <GreedyAttribute>(true); _greedyAttributeInstance = _greedyAttributeInstanceFixture ?? this.Create <GreedyAttribute>(false); CurrentInstance = _greedyAttributeInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_GreedyAttribute_Instantiated_Without_Parameter_No_Throw_Exception_Test() { // Arrange GreedyAttribute instance = null; // Act var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance); // Assert instance.ShouldNotBeNull(); exception.ShouldBeNull(); }