public void ReadUInt164DArrayTest() { List <List <List <List <ushort> > > > values = new List <List <List <List <ushort> > > >() { 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 }, }, }, new List <List <List <ushort> > >() { new List <List <ushort> >() { new List <ushort>() { 0x12, 0x23 }, }, }, }; DeserializationHelper.Array4DHelper <ushort>(values); }
public void ReadEnum4DArrayTest() { List <List <List <List <TestStatus> > > > values = new List <List <List <List <TestStatus> > > >() { 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 }, }, }, new List <List <List <TestStatus> > >() { new List <List <TestStatus> >() { new List <TestStatus>() { TestStatus.Late, TestStatus.Early, TestStatus.OnTime }, }, }, }; DeserializationHelper.Array4DHelper <TestStatus>(values); }
public void ReadInt644DArrayTest() { List <List <List <List <long> > > > values = new List <List <List <List <long> > > >() { 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 }, }, }, new List <List <List <long> > >() { new List <List <long> >() { new List <long>() { 0x12, 0x23 }, }, }, }; DeserializationHelper.Array4DHelper <long>(values); }
public void ReadInt324DArrayTest() { List <List <List <List <int> > > > values = new List <List <List <List <int> > > >() { 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, 0x29 }, }, }, new List <List <List <int> > >() { new List <List <int> >() { new List <int>() { 0x02, 0x13, -29 }, }, }, }; DeserializationHelper.Array4DHelper <int>(values); }
public void ReadByte4DArrayTest() { List <List <List <List <byte> > > > values = new List <List <List <List <byte> > > >() { 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 }, }, }, new List <List <List <byte> > >() { new List <List <byte> >() { new List <byte>() { 0x12, 0x23 }, }, }, }; DeserializationHelper.Array4DHelper <byte>(values); }
public void ReadFloat4DArrayTest() { List <List <List <List <float> > > > values = new List <List <List <List <float> > > >() { 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 }, }, }, new List <List <List <float> > >() { new List <List <float> >() { new List <float>() { 0x12, 0x23 }, }, }, }; DeserializationHelper.Array4DHelper <float>(values); }
public void ReadString4DArrayTest() { List <List <List <List <string> > > > values = new List <List <List <List <string> > > >() { 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?" }, }, }, new List <List <List <string> > >() { new List <List <string> >() { new List <string>() { "no ways !!!111one", "sigh." }, }, }, }; DeserializationHelper.Array4DHelper <string>(values); }
public void ReadUInt644DArrayTest() { List <List <List <List <ulong> > > > values = new List <List <List <List <ulong> > > >() { 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 }, }, }, new List <List <List <ulong> > >() { new List <List <ulong> >() { new List <ulong>() { 0x12, 0x23 }, }, }, }; DeserializationHelper.Array4DHelper <ulong>(values); }
public void ReadBoolean4DArrayTest() { List <List <List <List <bool> > > > values = new List <List <List <List <bool> > > >() { 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 }, }, }, new List <List <List <bool> > >() { new List <List <bool> >() { new List <bool>() { true, false, true }, }, }, }; DeserializationHelper.Array4DHelper <bool>(values); }
public void ReadUInt324DArrayTest() { List <List <List <List <uint> > > > values = new List <List <List <List <uint> > > >() { 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 }, }, }, new List <List <List <uint> > >() { new List <List <uint> >() { new List <uint>() { 0x12, 0x23 }, }, }, }; DeserializationHelper.Array4DHelper <uint>(values); }
/// <summary> /// Helps test 4D 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 Array4DHelper <T>(List <List <List <List <T> > > > values) { DeserializationHelper.Array4DHelper <T>(values, false); DeserializationHelper.Array4DHelper <T>(values, true); }