NUnitForms Class Library

NUnitFormsAssertTest Methods

The methods of the NUnitFormsAssertTest class are listed below. For a complete list of NUnitFormsAssertTest class members, see the NUnitFormsAssertTest Members topic.

Public Instance Methods

ActivateForm (inherited from NUnitFormTest) This will be marked obsolete soon. This method is called before each test in order to set the CurrentForm property (also obsolete) You can override this method as an alternative to setting the FormType property if you want to test the old way.
AreEqualOverloaded. Missing <summary> documentation for M:NUnit.Extensions.Forms.NUnitFormsAssertTest.AreEqual(System.Double,System.Double,System.Double)
AreSameOverloaded. Missing <summary> documentation for M:NUnit.Extensions.Forms.NUnitFormsAssertTest.AreSame(System.Object,System.Object)
BaseSetup (inherited from NUnitFormTest) Obsolete soon. In your test class, you used to have the choice to override this method, or implement the FormType property. Now neither is necessary. It is still here for compatibility with tests written to use the CurrentForm property.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
FailOverloaded. Missing <summary> documentation for M:NUnit.Extensions.Forms.NUnitFormsAssertTest.Fail
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
init (inherited from NUnitFormTest) This is the base classes setup method. It will be called by NUnit before each test. You should not have anything to do with it.
IsFalseOverloaded. Missing <summary> documentation for M:NUnit.Extensions.Forms.NUnitFormsAssertTest.IsFalse(System.Boolean)
IsNotNullOverloaded. Missing <summary> documentation for M:NUnit.Extensions.Forms.NUnitFormsAssertTest.IsNotNull(System.Object)
IsNullOverloaded. Missing <summary> documentation for M:NUnit.Extensions.Forms.NUnitFormsAssertTest.IsNull(System.Object)
IsTrueOverloaded. Missing <summary> documentation for M:NUnit.Extensions.Forms.NUnitFormsAssertTest.IsTrue(System.Boolean)
Setup (inherited from NUnitFormTest) Override this Setup method if you have custom behavior to execute before each test in your fixture.
TearDown (inherited from NUnitFormTest) This method is called after each test. Put code here to clean up anything you need to between tests. NUnitForms cleans up most everything you need related to the framework (closes extra windows, etc..) but you might need custom behavior beyond this. Put it here.
ToString (inherited from Object)Returns a String that represents the current Object.
UnexpectedModal (inherited from NUnitFormTest) This is the method that is called to handled unexpected modal dialogs. It is called automatically by the NUnitForms framework when such a dialog appears. You should not need to call it.
Verify (inherited from NUnitFormTest) This method is called by NUnit after each test runs. If you have custom behavior to run after each test, then override the TearDown method and do it there. That method is called at the beginning of this one. You should not need to do anything with it. Do not call it. If you do call it, call it as the last thing you do in your test.

Protected Instance Methods

ExpectModal (inherited from NUnitFormTest)Overloaded. One of four overloaded methods to set up a modal dialog handler. If you expect a modal dialog to appear and can handle it during the test, use this method to set up the handler.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

NUnitFormsAssertTest Class | NUnit.Extensions.Forms Namespace