@@ -147,9 +147,16 @@ public void ReceiveSevenByteMessageWithWrongParity()
147147 }
148148
149149 [ Fact ( Skip = "Remove this Skip property to run this test" ) ]
150- public void ReceiveLongerMessage ( )
150+ public void ReceiveTwentyByteMessage ( )
151151 {
152- Assert . Equal ( [ 0xF0 , 0x9F , 0x8E , 0x86 , 0x46 , 0x6F , 0x75 , 0x6E , 0x64 , 0x20 , 0x6D , 0x65 , 0xF0 , 0x9F , 0x9A , 0x80 ] ,
153- IntergalacticTransmission . DecodeSequence ( [ 0xF0 , 0x4E , 0xE2 , 0xD1 , 0x65 , 0x33 , 0xBD , 0xEB , 0x6F , 0x33 , 0x09 , 0x0C , 0xD7 , 0x2E , 0xC3 , 0x3F , 0x9A , 0x41 , 0x00 ] ) ) ;
152+ Assert . Equal ( [ 0x45 , 0x78 , 0x65 , 0x72 , 0x63 , 0x69 , 0x73 , 0x6d , 0x20 , 0x69 , 0x73 , 0x20 , 0x61 , 0x77 , 0x65 , 0x73 , 0x6f , 0x6d , 0x65 , 0x21 ] ,
153+ IntergalacticTransmission . DecodeSequence ( [ 0x44 , 0xbd , 0x18 , 0xaf , 0x27 , 0x1b , 0xa5 , 0xe7 , 0x6c , 0x90 , 0x1b , 0x2e , 0x33 , 0x03 , 0x84 , 0xee , 0x65 , 0xb8 , 0xdb , 0xed , 0xd7 , 0x28 , 0x84 ] ) ) ;
154+ }
155+
156+ [ Fact ( Skip = "Remove this Skip property to run this test" ) ]
157+ public void ReceiveWrongParityOnByte16 ( )
158+ {
159+ Assert . Throws < ArgumentException > ( ( ) =>
160+ IntergalacticTransmission . DecodeSequence ( [ 0x44 , 0xbd , 0x18 , 0xaf , 0x27 , 0x1b , 0xa5 , 0xe7 , 0x6c , 0x90 , 0x1b , 0x2e , 0x33 , 0x03 , 0x84 , 0xef , 0x65 , 0xb8 , 0xdb , 0xed , 0xd7 , 0x28 , 0x84 ] ) ) ;
154161 }
155162}
0 commit comments