Exemple #1
0
        public void ToTypedRow_MyComplexDataWithPrimitiveList()
        {
            var row1 = new MyComplexDataWithPrimitiveList
            {
                ID   = 12345,
                Data = new List <int> {
                    1, 7, 12, 3, 8, 9, 0, 2134, 43, 6, 2, 5
                }
            };

            var str = row1.ToJSON(JSONWritingOptions.PrettyPrintRowsAsMap);

            Console.WriteLine(str);

            MyComplexDataWithPrimitiveList row2 = str.JSONToDynamic();

            Assert.IsTrue(row1.Equals(row2));
        }
Exemple #2
0
        public void ToTypedRow_MyComplexDataWithPrimitiveList()
        {
            var row1 = new MyComplexDataWithPrimitiveList
            {
                ID   = 12345,
                Data = new List <int> {
                    1, 7, 12, 3, 8, 9, 0, 2134, 43, 6, 2, 5
                }
            };

            var str = row1.ToJson(JsonWritingOptions.PrettyPrintRowsAsMap);

            str.See();

            MyComplexDataWithPrimitiveList row2 = str.JsonToDynamic();

            Aver.IsTrue(row1.Equals(row2));
        }
Exemple #3
0
        public void ToTypedRow_MyComplexDataWithPrimitiveList()
        {
            var row1 = new MyComplexDataWithPrimitiveList
            { ID = 12345,
              Data = new List<int>{ 1,7,12,3,8,9,0,2134,43,6,2,5}
            };

            var str = row1.ToJSON(JSONWritingOptions.PrettyPrintRowsAsMap);

            Console.WriteLine(str);

            MyComplexDataWithPrimitiveList row2 = str.JSONToDynamic();

            Assert.IsTrue(row1.Equals(row2));
        }