UTCore.TestFixture.AddSetUpAttribute C# (CSharp) Method

AddSetUpAttribute() public method

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

Usage Example

		public override void SelfRegister(TestFixture tf)
		{
			tf.AddSetUpAttribute(this);
		}