You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before we would rely on error being null to detect whether to read results and we had an additional 'hasResult' field. Now all this information is codified in a field.
@@ -100,13 +101,15 @@ public void CanRoundTripInvocationMessage(HubMessage[] hubMessages)
100
101
// CompletionMessage
101
102
newobject[]{newbyte[]{0x03},"Reading 'invocationId' as String failed."},// 0xc2 is Bool false
102
103
newobject[]{newbyte[]{0x03,0xc2},"Reading 'invocationId' as String failed."},// 0xc2 is Bool false
103
-
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0xc2},"Reading 'error' as String failed."},// 0xc2 is Bool false
104
-
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0xa1},"Reading 'error' as String failed."},// error is cut
105
-
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0xc0},"Reading 'hasResult' as Boolean failed."},// hasResult missing
106
-
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0xc0,0xa0},"Reading 'hasResult' as Boolean failed."},// 0xa0 is string
107
-
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0xc0,0xc3},"Deserializing object of the `String` type for 'argument' failed."},// result missing
108
-
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0xc0,0xc3,0xa9},"Deserializing object of the `String` type for 'argument' failed."},// result is cut
109
-
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0xc0,0xc3,0x00},"Deserializing object of the `String` type for 'argument' failed."}// return type mismatch
104
+
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0xc2},"Reading 'resultKind' as Int32 failed."},// result kind is not int
105
+
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0x0f},"Invalid invocation result kind."},// result kind is out of range
106
+
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0x01},"Reading 'error' as String failed."},// error result but no error
107
+
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0x01,0xa1},"Reading 'error' as String failed."},// error is cut
108
+
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0x03},"Deserializing object of the `String` type for 'argument' failed."},// non void result but result missing
109
+
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0x03,0xa9},"Deserializing object of the `String` type for 'argument' failed."},// result is cut
110
+
newobject[]{newbyte[]{0x03,0xa3,0x78,0x79,0x7a,0x03,0x00},"Deserializing object of the `String` type for 'argument' failed."},// return type mismatch
111
+
112
+
// TODO: ReadAsInt32 and no int32 value
110
113
};
111
114
112
115
[Theory]
@@ -132,8 +135,8 @@ public void ParserThrowsForInvalidMessages(byte[] payload, string expectedExcept
0 commit comments