Cosmos/Tests/Cosmos.Compiler.Tests.Bcl/Kernel.cs
fanoI 299c155f4c Removed a lot of plugs from File: the promise is mantained it uses StreamReader / StreamWriter directly
- CosmosEncoding replacement of Encoding is not needed: Encoding runs perfectly on Cosmos!
- Added tests to BCL for UTF8Encoding
- StreamWriter does not needs a plug anymore, TextWriter is plugged instead but the plug is really the Ctor only
- Commented COSMOSDEBUG
2017-12-01 22:21:15 +01:00

65 lines
2 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using Cosmos.Debug.Kernel;
using Cosmos.TestRunner;
using Sys = Cosmos.System;
using Cosmos.Compiler.Tests.Bcl.System;
namespace Cosmos.Compiler.Tests.Bcl
{
public class Kernel : Sys.Kernel
{
protected override void BeforeRun()
{
Console.WriteLine("Cosmos booted successfully. Starting BCL tests now please wait...");
}
protected override void Run()
{
try
{
mDebugger.Send("Run");
CSharp.WhileLoopTests.Execute();
CSharp.ForeachLoopTests.Execute();
//ObjectTests.Execute(); Stack corruption on method Clone()
ArrayTests.Execute();
StringTest.Execute();
ByteTest.Execute();
SByteTest.Execute();
Int16Test.Execute();
UInt16Test.Execute();
Int32Test.Execute();
UInt32Test.Execute();
Int64Test.Execute();
UInt64Test.Execute();
CharTest.Execute();
BooleanTest.Execute();
SingleTest.Execute();
DoubleTest.Execute();
MathTest.Execute();
//DecimalTest.Execute();
BitConverterTest.Execute();
UnsafeCodeTest.Execute();
DelegatesTest.Execute();
EncodingTest.Execute();
//System.Collections.Generic.ListTest.Execute();
//System.Collections.Generic.QueueTest.Execute();
//System.Collections.Generic.DictionaryTest.Execute();
TestController.Completed();
}
catch (Exception e)
{
mDebugger.Send("Exception occurred: " + e.Message);
mDebugger.Send(e.Message);
Console.WriteLine("Exception occurred");
Console.WriteLine(e.Message);
TestController.Failed();
}
}
}
}