33 references to Assert
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (33)
src\Shared\Http2cat\Http2Utilities.cs (33)
233Assert.Equal(Http2FrameType.HEADERS, frame.Type); 529Assert.True(padLength >= payloadLength, $"{nameof(padLength)} must be greater than or equal to {nameof(payloadLength)} to create an invalid frame."); 673Assert.True(padLength >= frameLength, $"{nameof(padLength)} must be greater than or equal to {nameof(frameLength)} to create an invalid frame."); 712Assert.NotEqual(0, streamId); 846Assert.True(buffer.Length > 0); 876Assert.Equal(type, frame.Type); 877Assert.Equal(withLength, frame.PayloadLength); 878Assert.Equal(withFlags, frame.Flags); 879Assert.Equal(withStreamId, frame.StreamId); 903Assert.Equal(Http2FrameType.HEADERS, headersFrame.Type); 904Assert.Equal(expectedStreamId, headersFrame.StreamId); 905Assert.True((headersFrame.Flags & (byte)Http2HeadersFrameFlags.END_HEADERS) != 0); 906Assert.Equal(endStream, (headersFrame.Flags & (byte)Http2HeadersFrameFlags.END_STREAM) != 0); 916Assert.Equal(Http2FrameType.DATA, frame.Type); 917Assert.Equal(expectedStreamId, frame.StreamId); 918Assert.Equal(endOfStream ? Http2DataFrameFlags.END_STREAM : Http2DataFrameFlags.NONE, frame.DataFlags); 919Assert.Equal(length, frame.PayloadLength); 924Assert.Equal(Http2FrameType.GOAWAY, frame.Type); 925Assert.Equal(8, frame.PayloadLength); 926Assert.Equal(0, frame.Flags); 927Assert.Equal(0, frame.StreamId); 928Assert.Equal(expectedLastStreamId, frame.GoAwayLastStreamId); 929Assert.Equal(expectedErrorCode, frame.GoAwayErrorCode); 934Assert.Equal(Http2FrameType.RST_STREAM, frame.Type); 935Assert.Equal(expectedStreamId, frame.StreamId); 936Assert.Equal(expectedErrorCode, frame.RstStreamErrorCode); 937Assert.Equal(4, frame.PayloadLength); 938Assert.Equal(0, frame.Flags); 968Assert.Equal(Http2FrameType.RST_STREAM, frame.Type); 969Assert.Equal(4, frame.PayloadLength); 970Assert.Equal(0, frame.Flags); 971Assert.Equal(expectedStreamId, frame.StreamId); 972Assert.Equal(expectedErrorCode, frame.RstStreamErrorCode);