public void ReadEnum2DArrayTest() { List <List <TestStatus> > values = 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 }, }; DeserializationHelper.Array2DHelper <TestStatus>(values); }
public void ReadInt322DArrayTest() { List <List <int> > values = new List <List <int> >() { new List <int>() { int.MaxValue, 10000, 0, -1000, 100, int.MinValue }, new List <int>() { 0x00, 0xFD, -12 }, }; DeserializationHelper.Array2DHelper <int>(values); }
public void ReadUInt162DArrayTest() { List <List <ushort> > values = new List <List <ushort> >() { new List <ushort>() { 1, 0, ushort.MinValue, 1000, ushort.MaxValue }, new List <ushort>() { ushort.MinValue, 2 }, }; DeserializationHelper.Array2DHelper <ushort>(values); }
public void ReadByte2DArrayTest() { List <List <byte> > values = new List <List <byte> >() { new List <byte>() { 0x01, 0x02 }, new List <byte>() { 0x00, 0xFD, 0x98 }, }; DeserializationHelper.Array2DHelper <byte>(values); }
public void ReadFloat2DArrayTest() { List <List <float> > values = new List <List <float> >() { new List <float>() { 0x01, 1.1F, 2.2F, 3.3F }, new List <float>() { -2.5F, 0xFD, 3000 }, }; DeserializationHelper.Array2DHelper <float>(values); }
public void ReadInt642DArrayTest() { List <List <long> > values = new List <List <long> >() { new List <long>() { 0, 50, -100, long.MinValue, -10000, long.MaxValue }, new List <long>() { 0x10, long.MinValue, 0x98 }, }; DeserializationHelper.Array2DHelper <long>(values); }
public void ReadString2DArrayTest() { List <List <string> > values = new List <List <string> >() { new List <string>() { "foo", "bar" }, new List <string>() { "no", "no", "and no" }, }; DeserializationHelper.Array2DHelper <string>(values); }
public void ReadUInt642DArrayTest() { List <List <ulong> > values = new List <List <ulong> >() { new List <ulong>() { 1000, 100, 0, ulong.MinValue, 666, ulong.MaxValue }, new List <ulong>() { 0x00, ulong.MaxValue, 0x98 }, }; DeserializationHelper.Array2DHelper <ulong>(values); }
public void ReadDouble2DArrayTest() { List <List <double> > values = new List <List <double> >() { new List <double>() { 0x01, 1.1F, 2.2F, 3.3e300 }, new List <double>() { -2.5F, 0xFD, 3000 }, }; DeserializationHelper.Array2DHelper <double>(values); }
public void ReadBoolean2DArrayTest() { List <List <bool> > values = new List <List <bool> >() { new List <bool>() { false, true }, new List <bool>() { true }, }; DeserializationHelper.Array2DHelper <bool>(values); }
public void ReadUInt322DArrayTest() { List <List <uint> > values = new List <List <uint> >() { new List <uint>() { 55, 123, 0, uint.MinValue, 5, uint.MaxValue }, new List <uint>() { 0x00, uint.MinValue, 0x98 }, }; DeserializationHelper.Array2DHelper <uint>(values); }
/// <summary> /// Helps test 2D 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 Array2DHelper <T>(List <List <T> > values) { DeserializationHelper.Array2DHelper <T>(values, false); DeserializationHelper.Array2DHelper <T>(values, true); }