예제 #1
0
        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"
                );
        }
예제 #2
0
        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"
                );
        }
예제 #3
0
        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);
        }
예제 #4
0
파일: Program.cs 프로젝트: mrange/T4Include
        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);
        }