This project is read-only.

Add a Test Class to FindThrowPlatformType

CCI Metadata

To test FindThrowPlatformType, run it on an assembly that creates at least one ArgumentNullException object.

A simple way to create a test case is to add a class to FindThrowPlatformType that creates a ArgumentNullException object. You can then test FindThrowPlatformType by running the application on itself, as described in How to Compile and Run FindThrowPlatformType. The following is an example of a simple test class.
class Test
  void TestMethod ( )
    ArgumentNullException args = new ArgumentNullException();

If you insert this class into FindThrowPlatformType and then run the application against itself, you should see the following output:
System.Void FindThrowPlatformType.Test.TestMethod()

Return to Beginning

Last edited Jan 15, 2010 at 4:54 PM by Guy_Smith, version 1


No comments yet.