diff --git a/source2/Users/Kudzu/Breakpoints/BreakpointsKernel.csproj b/source2/Users/Kudzu/Breakpoints/BreakpointsKernel.csproj index cfb6882e4..a63cb35c8 100644 --- a/source2/Users/Kudzu/Breakpoints/BreakpointsKernel.csproj +++ b/source2/Users/Kudzu/Breakpoints/BreakpointsKernel.csproj @@ -67,7 +67,10 @@ + + + diff --git a/source2/Users/Kudzu/Breakpoints/BreakpointsOS.cs b/source2/Users/Kudzu/Breakpoints/BreakpointsOS.cs index 5508983e4..e20ecd25d 100644 --- a/source2/Users/Kudzu/Breakpoints/BreakpointsOS.cs +++ b/source2/Users/Kudzu/Breakpoints/BreakpointsOS.cs @@ -14,6 +14,18 @@ namespace BreakpointsKernel { ClearScreen = false; } + protected override void Run() { + Test xTest; + + xTest = new NullableTest(); + xTest.Run(); + + xTest = new Int64Test(); + xTest.Run(); + + TestATA(); + } + protected override void BeforeRun() { Console.WriteLine("Cosmos boot complete."); } @@ -60,25 +72,6 @@ namespace BreakpointsKernel { Console.ReadLine(); } - void TestNullableTypes() { - Console.WriteLine(); - - UInt32 x = 32; - UInt32? y = x; - Console.WriteLine(x); - Console.WriteLine(y.Value); - - UInt32 x2 = 64; - UInt32? y2 = x2; - Console.WriteLine(x2); - Console.WriteLine(y2.Value); - - UInt32? y3 = x2; - Console.WriteLine(y3.Value); - - Console.ReadLine(); - } - void TestStringCtor() { char[] xChars = new char[5]; xChars[0] = 'A'; @@ -91,15 +84,6 @@ namespace BreakpointsKernel { Console.WriteLine(xString.Length); } - protected override void Run() { - Test xTest; - - xTest = new Int64Test(); - xTest.Run(); - - TestATA(); - } - protected void TestATA() { //try { //Trace1(); diff --git a/source2/Users/Kudzu/Breakpoints/NullableTest.cs b/source2/Users/Kudzu/Breakpoints/NullableTest.cs new file mode 100644 index 000000000..50ead29cd --- /dev/null +++ b/source2/Users/Kudzu/Breakpoints/NullableTest.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace BreakpointsKernel { + public class NullableTest : Test { + + // Changeset 74104 - BreakpointsOS.cs. TestNullableTypes. + // It appears to work, but whatever value is last used there shows up for the Size value later on in line 123. + // If you comment out the x2 and y2 you will see 32 instead. + // How to reproduce this outside of this changeset? Cant seem to repro it here. + + public override void Run() { + UInt32 x = 32; + UInt32? y = x; + Chk(y.Value == 32); + + UInt32 x2 = 64; + UInt32? y2 = x2; + Chk(y2.Value == 64); + Chk(y.Value == 32); + + UInt32? y3 = x2; + Chk(y3.Value == 64); + } + + } +} diff --git a/source2/Users/Kudzu/Breakpoints/StringBuilderTest.cs b/source2/Users/Kudzu/Breakpoints/StringBuilderTest.cs new file mode 100644 index 000000000..69ae2a844 --- /dev/null +++ b/source2/Users/Kudzu/Breakpoints/StringBuilderTest.cs @@ -0,0 +1,9 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace BreakpointsKernel { + class StringBuilderTest { + } +} diff --git a/source2/Users/Kudzu/Breakpoints/StringTest.cs b/source2/Users/Kudzu/Breakpoints/StringTest.cs new file mode 100644 index 000000000..fbd66e0ff --- /dev/null +++ b/source2/Users/Kudzu/Breakpoints/StringTest.cs @@ -0,0 +1,9 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace BreakpointsKernel { + class StringTest { + } +}