예제 #1
0
        public void TestOption1_Json()
        {
            List <Element> result = new List <Element>();

            reader = new Option1Reader();
            string json = System.IO.File.ReadAllText(filename);

            sw.Start();
            for (int i = 0; i < iterations; i++)
            {
                var read = reader.GetAllFromJson(json);
                result.AddRange(read);
            }
            sw.Stop();

            Assert.IsNotNull(result);
            Assert.AreNotEqual(0, result.Count);
            Debug.WriteLine(sw.Elapsed.ToString());
        }