![]() | ErrorTester Class |
Namespace: Capgemini.CommonObjectUtils.Testing
The ErrorTester type exposes the following members.
Name | Description | |
---|---|---|
![]() | ErrorTester | Initializes a new instance of the ErrorTester class |
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Test |
Tests that an action causes a specified exception.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
[TestMethod] public void MyNullArgumentTest() { ... new ErrorTester() .Test(typeof(ArgumentNullException), () => {myObj.myMethod(null, "1");}) .Test(typeof(ArgumentNullException), () => {myObj.myMethod("2", null);}); }