示例#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());
 }