public void AddSetUpAttribute(SetUpAttribute sua) { if(this.sua == null) { this.sua = sua; } else { Trace.WriteLine("Multiple setup methods are not allowed."); } }
public override void SelfRegister(TestFixture tf) { tf.AddSetUpAttribute(this); }