Ejemplo n.º 1
0
        public void ReadEnum3DArrayTest()
        {
            List <List <List <TestStatus> > > values = new List <List <List <TestStatus> > >()
            {
                new List <List <TestStatus> >()
                {
                    new List <TestStatus>()
                    {
                        TestStatus.Late, TestStatus.Late, TestStatus.Early, TestStatus.OnTime, TestStatus.Early
                    },
                    new List <TestStatus>()
                    {
                        TestStatus.Early, TestStatus.Late, TestStatus.Late, TestStatus.OnTime
                    },
                },
                new List <List <TestStatus> >()
                {
                    new List <TestStatus>()
                    {
                        TestStatus.OnTime, TestStatus.Early, TestStatus.Late
                    },
                },
            };

            DeserializationHelper.Array3DHelper <TestStatus>(values);
        }
Ejemplo n.º 2
0
        public void ReadInt323DArrayTest()
        {
            List <List <List <int> > > values = new List <List <List <int> > >()
            {
                new List <List <int> >()
                {
                    new List <int>()
                    {
                        int.MaxValue, 10000, 0, -1000, 100, int.MinValue
                    },
                    new List <int>()
                    {
                        0x00, 0xFD, -12
                    },
                },
                new List <List <int> >()
                {
                    new List <int>()
                    {
                        0x02, 0x13, -29
                    },
                },
            };

            DeserializationHelper.Array3DHelper <int>(values);
        }
Ejemplo n.º 3
0
        public void ReadUInt163DArrayTest()
        {
            List <List <List <ushort> > > values = new List <List <List <ushort> > >()
            {
                new List <List <ushort> >()
                {
                    new List <ushort>()
                    {
                        1, 0, ushort.MinValue, 1000, ushort.MaxValue
                    },
                    new List <ushort>()
                    {
                        ushort.MinValue, 2
                    },
                },
                new List <List <ushort> >()
                {
                    new List <ushort>()
                    {
                        0x02, ushort.MinValue, 0x29
                    },
                },
            };

            DeserializationHelper.Array3DHelper <ushort>(values);
        }
Ejemplo n.º 4
0
        public void ReadByte3DArrayTest()
        {
            List <List <List <byte> > > values = new List <List <List <byte> > >()
            {
                new List <List <byte> >()
                {
                    new List <byte>()
                    {
                        0x01, 0x02
                    },
                    new List <byte>()
                    {
                        0x00, 0xFD, 0x98
                    },
                },
                new List <List <byte> >()
                {
                    new List <byte>()
                    {
                        0x02, 0x13, 0x29
                    },
                },
            };

            DeserializationHelper.Array3DHelper <byte>(values);
        }
Ejemplo n.º 5
0
        public void ReadFloat3DArrayTest()
        {
            List <List <List <float> > > values = new List <List <List <float> > >()
            {
                new List <List <float> >()
                {
                    new List <float>()
                    {
                        0x01, 1.1F, 2.2F, 3.3F
                    },
                    new List <float>()
                    {
                        -2.5F, 0xFD, 3000
                    },
                },
                new List <List <float> >()
                {
                    new List <float>()
                    {
                        1.5F, 2.2F, -1e10F
                    },
                },
            };

            DeserializationHelper.Array3DHelper <float>(values);
        }
Ejemplo n.º 6
0
        public void ReadInt643DArrayTest()
        {
            List <List <List <long> > > values = new List <List <List <long> > >()
            {
                new List <List <long> >()
                {
                    new List <long>()
                    {
                        0, 50, -100, long.MinValue, -10000, long.MaxValue
                    },
                    new List <long>()
                    {
                        0x10, long.MinValue, 0x98
                    },
                },
                new List <List <long> >()
                {
                    new List <long>()
                    {
                        long.MinValue, 0x13, 0x29
                    },
                },
            };

            DeserializationHelper.Array3DHelper <long>(values);
        }
Ejemplo n.º 7
0
        public void ReadString3DArrayTest()
        {
            List <List <List <string> > > values = new List <List <List <string> > >()
            {
                new List <List <string> >()
                {
                    new List <string>()
                    {
                        "foo", "bar"
                    },
                    new List <string>()
                    {
                        "no", "no", "and no"
                    },
                },
                new List <List <string> >()
                {
                    new List <string>()
                    {
                        "what?", "where?", "who?"
                    },
                },
            };

            DeserializationHelper.Array3DHelper <string>(values);
        }
Ejemplo n.º 8
0
        public void ReadUInt643DArrayTest()
        {
            List <List <List <ulong> > > values = new List <List <List <ulong> > >()
            {
                new List <List <ulong> >()
                {
                    new List <ulong>()
                    {
                        1000, 100, 0, ulong.MinValue, 666, ulong.MaxValue
                    },
                    new List <ulong>()
                    {
                        0x00, ulong.MaxValue, 0x98
                    },
                },
                new List <List <ulong> >()
                {
                    new List <ulong>()
                    {
                        0x02, 0x13, ulong.MaxValue
                    },
                },
            };

            DeserializationHelper.Array3DHelper <ulong>(values);
        }
Ejemplo n.º 9
0
        public void ReadBoolean3DArrayTest()
        {
            List <List <List <bool> > > values = new List <List <List <bool> > >()
            {
                new List <List <bool> >()
                {
                    new List <bool>()
                    {
                        false, true
                    },
                    new List <bool>()
                    {
                        true
                    },
                },
                new List <List <bool> >()
                {
                    new List <bool>()
                    {
                        false
                    },
                },
            };

            DeserializationHelper.Array3DHelper <bool>(values);
        }
Ejemplo n.º 10
0
        public void ReadInt163DArrayTest()
        {
            List <List <List <short> > > values = new List <List <List <short> > >()
            {
                new List <List <short> >()
                {
                    new List <short>()
                    {
                        -1, 0, short.MinValue, 1000, short.MaxValue
                    },
                    new List <short>()
                    {
                        -1, short.MaxValue, 10
                    },
                },
                new List <List <short> >()
                {
                    new List <short>()
                    {
                        0x02, 0x13, 0x29
                    },
                },
            };

            DeserializationHelper.Array3DHelper <short>(values);
        }
Ejemplo n.º 11
0
        public void ReadUInt323DArrayTest()
        {
            List <List <List <uint> > > values = new List <List <List <uint> > >()
            {
                new List <List <uint> >()
                {
                    new List <uint>()
                    {
                        55, 123, 0, uint.MinValue, 5, uint.MaxValue
                    },
                    new List <uint>()
                    {
                        0x00, uint.MinValue, 0x98
                    },
                },
                new List <List <uint> >()
                {
                    new List <uint>()
                    {
                        0x02, uint.MinValue, 0x29
                    },
                },
            };

            DeserializationHelper.Array3DHelper <uint>(values);
        }
Ejemplo n.º 12
0
 /// <summary>
 /// Helps test 3D arrays for both the nullable and non-nullable case.
 /// </summary>
 /// <typeparam name="T">Type of the underlying value stored in the array.</typeparam>
 /// <param name="values">The values.</param>
 public static void Array3DHelper <T>(List <List <List <T> > > values)
 {
     DeserializationHelper.Array3DHelper <T>(values, false);
     DeserializationHelper.Array3DHelper <T>(values, true);
 }