15 references to UrlDecoder
Microsoft.AspNetCore.Shared.Tests (15)
UrlDecoderTests.cs (15)
16int length = UrlDecoder.DecodeRequestLine(input.AsSpan(), destination.AsSpan()); 25int length = UrlDecoder.DecodeRequestLine(input.AsSpan(), destination.AsSpan(), false); 35int length = UrlDecoder.DecodeInPlace(destination.AsSpan()); 45int length = UrlDecoder.DecodeInPlace(destination.AsSpan(), false); 53Assert.Throws<ArgumentException>(() => UrlDecoder.DecodeRequestLine(source.AsSpan(), source.AsSpan(0, 1))); 60Assert.Throws<ArgumentException>(() => UrlDecoder.DecodeRequestLine(source.AsSpan(), source.AsSpan(0, 1), false)); 67var length = UrlDecoder.DecodeRequestLine(source.AsSpan(), new char[source.Length + 10]); 75var length = UrlDecoder.DecodeRequestLine(source.AsSpan(), new byte[source.Length + 10], false); 83Assert.Throws<InvalidOperationException>(() => UrlDecoder.DecodeInPlace(source.AsSpan())); 90Assert.Throws<InvalidOperationException>(() => UrlDecoder.DecodeInPlace(source.AsSpan(), false)); 102var length = UrlDecoder.DecodeInPlace(source.AsSpan()); 116var length = UrlDecoder.DecodeInPlace(source.AsSpan(), false); 126var length = UrlDecoder.DecodeInPlace(source.AsSpan(), true); 140var length = UrlDecoder.DecodeInPlace(source.AsSpan()); 154var length = UrlDecoder.DecodeInPlace(source.AsSpan(), true);