Export (0) Print
Expand All

Assert Members

Verifies conditions in unit tests using true/false propositions.

The following tables list the members exposed by the Assert type.

(see also Protected Methods )
  Name Description
Public method Static AreEqual Overloaded. Verifies that specified values are equal.  
Public method Static AreNotEqual Overloaded. Verifies that specified values are not equal.  
Public method Static AreNotSame Overloaded. Verifies that specified object variables refer to different objects.  
Public method Static AreSame Overloaded. Verifies that specified object variables refer to the same object.  
Public method Equals  Overloaded. (Inherited from Object.)
Public method Static Fail Overloaded. Fails an assertion without checking any conditions.  
Public method GetHashCode  (Inherited from Object.)
Public method GetType  (Inherited from Object.)
Public method Static Inconclusive Overloaded. Indicates that an assertion cannot be proven true or false. Also used to indicate an assertion that has not yet been implemented.  
Public method Static IsFalse Overloaded. Verifies that a specified condition is false.  
Public method Static IsInstanceOfType Overloaded. Verifies that a specified object is an instance of a specified type.  
Public method Static IsNotInstanceOfType Overloaded. Verifies that a specified object is not an instance of a specified type.  
Public method Static IsNotNull Overloaded. Verifies that a specified object is not a null reference (Nothing in Visual Basic).  
Public method Static IsNull Overloaded. Verifies that a specified object is null.  
Public method Static IsTrue Overloaded. Verifies that a specified condition is true.  
Public method Static ReferenceEquals  (Inherited from Object.)
Public method ToString  (Inherited from Object.)
Top

  Name Description
Protected method Finalize  (Inherited from Object.)
Protected method MemberwiseClone  (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft