diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-14 23:55:29 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-14 23:55:29 +0000 |
commit | 63628550708a616c5c58bc5c707db1e7fd9cd7c2 (patch) | |
tree | b6b7d466db687ba360cd760245d1146e973863c0 /cs-dotnet/src/tests | |
parent | 9d86cba840252b451c4b86d9ea16c821b6c97245 (diff) | |
download | libgats-63628550708a616c5c58bc5c707db1e7fd9cd7c2.tar.gz libgats-63628550708a616c5c58bc5c707db1e7fd9cd7c2.tar.bz2 libgats-63628550708a616c5c58bc5c707db1e7fd9cd7c2.tar.xz libgats-63628550708a616c5c58bc5c707db1e7fd9cd7c2.zip |
Strings, bools, and ints all seem fine, the more complex container types are
coming next, and will implement the full range of appropriate interfaces.
Diffstat (limited to 'cs-dotnet/src/tests')
-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 | } |