예제 #1
0
 public async Task TruncatedJson()
 {
     foreach (var packet in PacketProvider.GetTruncatedJsonPackets())
     {
         await TestInvalidPacketAsync(packet);
     }
 }
예제 #2
0
 public async Task IncorrectContentLengthOverreadEndOfStream()
 {
     foreach (var packet in PacketProvider.GetIncorrectContentLengthOverreadEndOfStreamPackets())
     {
         await TestInvalidPacketAsync(packet);
     }
 }
예제 #3
0
 public async Task UnterminatedHeader()
 {
     await TestNoPacketAsync(PacketProvider.GetUnterminatedPacket());
     await TestNoPacketAsync(PacketProvider.GetIncorrectlyTerminatedPacket());
 }
예제 #4
0
 public async Task ValidUnicodePackets()
 {
     await TestValidPacketAsync(PacketProvider.GetValidUnicodePacket1());
     await TestValidPacketAsync(PacketProvider.GetValidUnicodePacket2());
 }
예제 #5
0
 public async Task EmptyStream()
 {
     await TestNoPacketAsync(PacketProvider.GetNoPacket());
 }
예제 #6
0
 public async Task AdditionalHeaders()
 {
     await TestValidPacketAsync(PacketProvider.GetAdditionalHeadersPacket());
 }
예제 #7
0
 public async Task MalformedHeader()
 {
     await TestInvalidPacketAsync(PacketProvider.GetMalformedHeaderPacket());
 }
예제 #8
0
 public async Task MissingContentLength()
 {
     await TestInvalidPacketAsync(PacketProvider.GetMissingContentLengthPacket());
 }
예제 #9
0
 public async Task InvalidContentLengthType()
 {
     await TestInvalidPacketAsync(PacketProvider.GetInvalidContentLengthIntegerTooLargePacket());
     await TestInvalidPacketAsync(PacketProvider.GetInvalidContentLengthNegativeIntegerPacket());
     await TestInvalidPacketAsync(PacketProvider.GetInvalidContentLengthNotIntegerPacket());
 }