Ejemplo n.º 1
0
 public void TetsUnsignedByte(byte number, byte[] data)
 {
     MsgPackConverter.Serialize((byte?)number).ShouldBe(data);
 }
Ejemplo n.º 2
0
 public void WriteNullAsNullableLong()
 {
     MsgPackConverter.Serialize(default(long?)).ShouldBe(new[] { (byte)DataTypes.Null });
 }
Ejemplo n.º 3
0
 public void TetsUnsignedLong(ulong number, byte[] data)
 {
     MsgPackConverter.Serialize((ulong?)number).ShouldBe(data);
 }
Ejemplo n.º 4
0
 public void TetsUnsignedShort(ushort number, byte[] data)
 {
     MsgPackConverter.Serialize((ushort?)number).ShouldBe(data);
 }
Ejemplo n.º 5
0
 public void TestFloat(float value, byte[] bytes)
 {
     MsgPackConverter.Serialize((float?)value).ShouldBe(bytes);
 }
Ejemplo n.º 6
0
 public void TestSignedInt(int number, byte[] data)
 {
     MsgPackConverter.Serialize((int?)number).ShouldBe(data);
 }
Ejemplo n.º 7
0
 public void True()
 {
     MsgPackConverter.Serialize(true).ShouldBe(new[] { (byte)DataTypes.True });
 }
Ejemplo n.º 8
0
 public void TestDouble(double value, byte[] bytes)
 {
     MsgPackConverter.Serialize((double?)value).ShouldBe(bytes);
 }
Ejemplo n.º 9
0
 public void False()
 {
     MsgPackConverter.Serialize(false).ShouldBe(new[] { (byte)DataTypes.False });
 }
Ejemplo n.º 10
0
 public void WriteNullString()
 {
     MsgPackConverter.Serialize((string)null).ShouldBe(new[] { (byte)DataTypes.Null });
 }
Ejemplo n.º 11
0
 public void WriteNullMap()
 {
     MsgPackConverter.Serialize((IDictionary <int, int>)null).ShouldBe(new[] { (byte)DataTypes.Null });
 }
Ejemplo n.º 12
0
 public void WriteNullByteArray()
 {
     MsgPackConverter.Serialize((byte[])null).ShouldBe(new[] { (byte)DataTypes.Null });
 }
Ejemplo n.º 13
0
 public void Test(byte[] value, byte[] data)
 {
     MsgPackConverter.Serialize(value).ShouldBe(data);
 }