15 references to UrlDecoder
Microsoft.AspNetCore.Shared.Tests (15)
UrlDecoderTests.cs (15)
20int length = UrlDecoder.DecodeRequestLine(input.AsSpan(), destination.AsSpan()); 29int length = UrlDecoder.DecodeRequestLine(input.AsSpan(), destination.AsSpan(), false); 39int length = UrlDecoder.DecodeInPlace(destination.AsSpan()); 49int length = UrlDecoder.DecodeInPlace(destination.AsSpan(), false); 57Assert.Throws<ArgumentException>(() => UrlDecoder.DecodeRequestLine(source.AsSpan(), source.AsSpan(0, 1))); 64Assert.Throws<ArgumentException>(() => UrlDecoder.DecodeRequestLine(source.AsSpan(), source.AsSpan(0, 1), false)); 71var length = UrlDecoder.DecodeRequestLine(source.AsSpan(), new char[source.Length + 10]); 79var length = UrlDecoder.DecodeRequestLine(source.AsSpan(), new byte[source.Length + 10], false); 87Assert.Throws<InvalidOperationException>(() => UrlDecoder.DecodeInPlace(source.AsSpan())); 94Assert.Throws<InvalidOperationException>(() => UrlDecoder.DecodeInPlace(source.AsSpan(), false)); 106var length = UrlDecoder.DecodeInPlace(source.AsSpan()); 120var length = UrlDecoder.DecodeInPlace(source.AsSpan(), false); 130var length = UrlDecoder.DecodeInPlace(source.AsSpan(), true); 144var length = UrlDecoder.DecodeInPlace(source.AsSpan()); 158var length = UrlDecoder.DecodeInPlace(source.AsSpan(), true);