Skip to content

Commit 9b93edb

Browse files
Add byte test for FieldTableFormattingGeneric
1 parent bf92c70 commit 9b93edb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/client/Unit/src/unit/TestFieldTableFormattingGeneric.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public void TestQpidJmsTypes()
119119
{
120120
NetworkBinaryWriter w = Writer();
121121
IDictionary<string, object> t = new Dictionary<string, object>();
122+
t["B"] = (byte)255;
122123
t["b"] = (sbyte)-128;
123124
t["d"] = (double)123;
124125
t["f"] = (float)123;
@@ -130,6 +131,7 @@ public void TestQpidJmsTypes()
130131
t["V"] = null;
131132
WireFormatting.WriteTable(w, t);
132133
IDictionary nt = (IDictionary)WireFormatting.ReadTable(Reader(Contents(w)));
134+
Assert.AreEqual(typeof(byte), nt["B"].GetType()); Assert.AreEqual((byte)255, nt["B"]);
133135
Assert.AreEqual(typeof(sbyte), nt["b"].GetType()); Assert.AreEqual((sbyte)-128, nt["b"]);
134136
Assert.AreEqual(typeof(double), nt["d"].GetType()); Assert.AreEqual((double)123, nt["d"]);
135137
Assert.AreEqual(typeof(float), nt["f"].GetType()); Assert.AreEqual((float)123, nt["f"]);

0 commit comments

Comments
 (0)