public void SerializeEmpty() { var empty = new int[] { }; string xml = Utils.SerializeValue(empty, true); Assert.AreEqual(expectedEmptyArray, xml); }
public void SerializeMultiDim() { int[,] multiDim = new int[3, 2] { { 1, 2 }, { 3, 4 }, { 5, 6 } }; string xml = Utils.SerializeValue(multiDim, true); Assert.AreEqual(expectedMultiDim, xml); }
public void SerializeJagged() { var jagged = new int[][] { new int[] {}, new int[] { 1 }, new int[] { 2, 3 } }; string xml = Utils.SerializeValue(jagged, true); Assert.AreEqual(expectedJagged, xml); }
public void SerializeULongEnum() { string xml = Utils.SerializeValue(ULongEnum.MaxUintPlusOne, false); Assert.AreEqual("<value><i8>" + maxIntPlusOne.ToString() + "</i8></value>", xml); }
public void SerializeUIntEnum() { string xml = Utils.SerializeValue(UIntEnum.Two, false); Assert.AreEqual("<value><i8>2</i8></value>", xml); }
public void SerializeShortEnum() { string xml = Utils.SerializeValue(ShortEnum.Two, false); Assert.AreEqual("<value><i4>2</i4></value>", xml); }