18 references to Format
Microsoft.AspNetCore.Shared.Tests (18)
runtime\Http2\HPackDecoderTest.cs (11)
178Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message); 254Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message); 278Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 302Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 326Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 372Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 404Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message); 499Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message); 665Assert.Equal(SR.Format(SR.net_http_hpack_large_table_size_update, 4097, DynamicTableInitialMaxSize), exception.Message); 677Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize), exception.Message); 728Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize + 1), ex.Message);
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (4)
292throw new HPackDecodingException(SR.Format(SR.net_http_invalid_header_name, "")); 577throw new HPackDecodingException(SR.Format(SR.net_http_headers_exceeded_length, _maxHeadersLength)); 662throw new HPackDecodingException(SR.Format(SR.net_http_hpack_invalid_index, index)); 670throw new HPackDecodingException(SR.Format(SR.net_http_hpack_large_table_size_update, size, _maxDynamicTableSize));
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (3)
277throw new QPackDecodingException(SR.Format(SR.net_http_invalid_header_name, "")); 484throw new QPackDecodingException(SR.Format(SR.net_http_invalid_header_name, "")); 621throw new QPackDecodingException(SR.Format(SR.net_http_headers_exceeded_length, _maxHeadersLength));