Cosmos/Tests/Cosmos.TestRunner.TestController/TestController.cs
Matthijs ter Woord 1c86a8d817 Fixes #142
2015-06-21 16:55:31 +02:00

43 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cosmos.Debug.Kernel;
namespace Cosmos.TestRunner
{
public static class TestController
{
private static Debugger mDebugger;
internal static Debugger Debugger
{
get
{
return new Debugger("Tests", "TestController");
}
}
public const byte TestChannel = 255;
public static unsafe void Completed()
{
Debugger.SendChannelCommand(TestChannel, (byte)TestChannelCommandEnum.TestCompleted);
while (true)
;
}
public static void Failed()
{
Debugger.Send("Failed");
Debugger.SendChannelCommand(TestChannel, (byte)TestChannelCommandEnum.TestFailed);
while (true)
;
}
internal static void AssertionSucceeded()
{
Debugger.SendChannelCommand(TestChannel, (byte)TestChannelCommandEnum.AssertionSucceeded);
}
}
}