diff options
Diffstat (limited to '')
-rw-r--r-- | cs-dotnet/src/tests/ints.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cs-dotnet/src/tests/ints.cs b/cs-dotnet/src/tests/ints.cs index ea97820..7099995 100644 --- a/cs-dotnet/src/tests/ints.cs +++ b/cs-dotnet/src/tests/ints.cs | |||
@@ -7,10 +7,9 @@ class Ints | |||
7 | static void Main() | 7 | static void Main() |
8 | { | 8 | { |
9 | FileStream file = new FileStream("test.gats", FileMode.Open, | 9 | FileStream file = new FileStream("test.gats", FileMode.Open, |
10 | FileAccess.Write ); | 10 | FileAccess.Read ); |
11 | long iVal = 0xfffffe; | 11 | GatsObject obj = GatsObject.Read( file ); |
12 | GatsInteger i = new GatsInteger( iVal ); | 12 | Console.WriteLine("Read type: " + obj.GetType() ); |
13 | i.Write( file ); | 13 | Console.WriteLine("Read int: " + ((GatsInteger)obj).Value ); |
14 | Console.WriteLine("Read int: " + i.Value ); | ||
15 | } | 14 | } |
16 | } | 15 | } |