All pastes #36274 Raw Edit

Someone

public text v1 · immutable
#36274 ·published 2006-01-09 18:27 UTC
rendered paste body
using System;

public class TestSystem
{

	public static int Main()
	{
		TestArithmetics arithmetics = new TestArithmetics();
		int arithmeticsRes = arithmetics.runTests();
		if (arithmeticsRes != 0) {
			Console.WriteLine("Errors appeared during arithmetic operations... (" + arithmeticsRes + ")");
			return -1;
		}

		TestCasts casts = new TestCasts();
		int castRes = casts.runTests();
		if (castRes != 0) {
			Console.WriteLine("Errors appeared during cast operations... (" + castRes + ")");
			return -1;
		}

		Console.WriteLine("Tests were great!");
		return 0;
	}
}