public async Task TruncatedJson() { foreach (var packet in PacketProvider.GetTruncatedJsonPackets()) { await TestInvalidPacketAsync(packet); } }
public async Task IncorrectContentLengthOverreadEndOfStream() { foreach (var packet in PacketProvider.GetIncorrectContentLengthOverreadEndOfStreamPackets()) { await TestInvalidPacketAsync(packet); } }
public async Task UnterminatedHeader() { await TestNoPacketAsync(PacketProvider.GetUnterminatedPacket()); await TestNoPacketAsync(PacketProvider.GetIncorrectlyTerminatedPacket()); }
public async Task ValidUnicodePackets() { await TestValidPacketAsync(PacketProvider.GetValidUnicodePacket1()); await TestValidPacketAsync(PacketProvider.GetValidUnicodePacket2()); }
public async Task EmptyStream() { await TestNoPacketAsync(PacketProvider.GetNoPacket()); }
public async Task AdditionalHeaders() { await TestValidPacketAsync(PacketProvider.GetAdditionalHeadersPacket()); }
public async Task MalformedHeader() { await TestInvalidPacketAsync(PacketProvider.GetMalformedHeaderPacket()); }
public async Task MissingContentLength() { await TestInvalidPacketAsync(PacketProvider.GetMissingContentLengthPacket()); }
public async Task InvalidContentLengthType() { await TestInvalidPacketAsync(PacketProvider.GetInvalidContentLengthIntegerTooLargePacket()); await TestInvalidPacketAsync(PacketProvider.GetInvalidContentLengthNegativeIntegerPacket()); await TestInvalidPacketAsync(PacketProvider.GetInvalidContentLengthNotIntegerPacket()); }