//
//
//
//
// $Revision$
//
using System;
namespace Debugger.Tests.TestPrograms
{
public class Exception
{
public static void Main()
{
System.Diagnostics.Debugger.Break();
throw new System.Exception("test");
}
}
}
#if TEST_CODE
namespace Debugger.Tests {
using NUnit.Framework;
public partial class DebuggerTests
{
[NUnit.Framework.Test]
public void Exception()
{
StartTest("Exception.cs");
process.ExceptionThrown += delegate {
process.Terminate();
};
process.Paused += delegate {
// Should not be raised for dead process
Assert.Fail();
};
process.AsyncContinue();
process.WaitForExit();
EndTest();
}
}
}
#endif
#if EXPECTED_OUTPUT
mscorlib.dll (No symbols)
Exception.exe (Has symbols)
Break Exception.cs:16,4-16,40
System.Exception: test
#endif // EXPECTED_OUTPUT