mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-10 23:38:34 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
25 lines
343 B
C#
25 lines
343 B
C#
using Sandbox.Engine;
|
|
|
|
namespace TestSystem;
|
|
|
|
[TestClass]
|
|
public class ErrorReportTest
|
|
{
|
|
[TestMethod]
|
|
public void BasicReport()
|
|
{
|
|
ErrorReporter.Initialize();
|
|
|
|
try
|
|
{
|
|
throw new System.Exception( "Unit Test Exception" );
|
|
}
|
|
catch ( System.Exception e )
|
|
{
|
|
ErrorReporter.ReportException( e );
|
|
}
|
|
|
|
ErrorReporter.Flush();
|
|
}
|
|
}
|