mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 21:38:52 +00:00
This commit is contained in:
parent
dfbf5f4f00
commit
a87f333ab0
5 changed files with 62 additions and 28 deletions
|
|
@ -67,7 +67,10 @@
|
|||
<ItemGroup>
|
||||
<Compile Include="BreakpointsOS.cs" />
|
||||
<Compile Include="Int64Test.cs" />
|
||||
<Compile Include="NullableTest.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="StringBuilderTest.cs" />
|
||||
<Compile Include="StringTest.cs" />
|
||||
<Compile Include="Test.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
29
source2/Users/Kudzu/Breakpoints/NullableTest.cs
Normal file
29
source2/Users/Kudzu/Breakpoints/NullableTest.cs
Normal file
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
9
source2/Users/Kudzu/Breakpoints/StringBuilderTest.cs
Normal file
9
source2/Users/Kudzu/Breakpoints/StringBuilderTest.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BreakpointsKernel {
|
||||
class StringBuilderTest {
|
||||
}
|
||||
}
|
||||
9
source2/Users/Kudzu/Breakpoints/StringTest.cs
Normal file
9
source2/Users/Kudzu/Breakpoints/StringTest.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BreakpointsKernel {
|
||||
class StringTest {
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue