public void Test_Parse() { var visitor = new HRONWriterVisitor(); var lines = s_test_hron.ReadLines().ToArray(); HRONSerializer.Parse( int.MaxValue, lines, visitor ); TestFor.Equality( s_test_hron, visitor.Value, "HRON after deserialize/serialize should be identical to test case" ); }
static void Main(string[] args) { // Basic sanity check to see if functionality that are supposed to work // on .NET2 compiles Environment.CurrentDirectory = AppDomain.CurrentDomain.BaseDirectory; var hron = File.ReadAllText("Test.hron"); var visitor = new HRONWriterVisitor(); HRONSerializer.Parse( int.MaxValue, hron.ReadLines(), visitor); Console.WriteLine(visitor.Value); }
static void Main(string[] args) { // Basic sanity check to see if functionality that are supposed to work // on .NET2 compiles Environment.CurrentDirectory = AppDomain.CurrentDomain.BaseDirectory; var hron = File.ReadAllText("Test.hron"); var visitor = new HRONWriterVisitor(); HRONSerializer.Parse( int.MaxValue, hron.ReadLines(), visitor); Console.WriteLine (visitor.Value); }