utcs : Unit Test driver for C#.

Download Files

Changes

  1. Initial Version

Installation

  1. Place utcs.exe and utcscore.dll in a directory in the PATH

Notes

This is a Unit Test driver for C#. It accepts a list of arguments that are assemblies (dlls), finds classes that have a name "testxxx" and invokes any methods that have a signature like "void testxxx()".

Use

The command line looks like:
   utcs path1 [path2...] 

The paths are to C# assemblies.

Typical output
      Number of unit tests  : 1
      Number of assert calls: 10
      Number of errors      : 0
      Number of exceptions  : 0
    

This output shows:

A typical test looks like:

      public class testbin2ascii
        {
        public ut.UnitTester utx;
        public void testA()
          {
          utx.assert(1 == 1);
          utx.assert(1 == 0);
          }
        }
    

The utx field must be present and have the signature as shown. The utcscore.dll must also be referenced.




Contact me about content on this page using john_web-at-arrizza-dot-com
For Web Master or site problems contact: webadmin-at-arrizza-dot-com
Copyright John Arrizza (c) 2001-2010