216 references to OriginalString
Aspire.Dashboard.Components.Tests (3)
Aspire.Dashboard.Tests (6)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Microsoft.Azure.Cosmos (1)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
dotnet-svcutil.xmlserializer (1)
dotnet-svcutil-lib (19)
Microsoft.AspNetCore.Authentication.Test (3)
Microsoft.AspNetCore.Components (19)
NavigationManager.cs (19)
58return _baseUri!.OriginalString;
230if (uri.StartsWith(_baseUri!.OriginalString, StringComparison.Ordinal))
234return uri.Substring(_baseUri.OriginalString.Length);
239if (_baseUri.OriginalString.EndsWith('/') && uriPathOnly.Equals(_baseUri.OriginalString.AsSpan(0, _baseUri.OriginalString.Length - 1), StringComparison.Ordinal))
247return uri.Substring(_baseUri.OriginalString.Length - 1);
256if (MemoryExtensions.StartsWith(uri, _baseUri!.OriginalString.AsSpan(), StringComparison.Ordinal))
260return uri[_baseUri.OriginalString.Length..];
265if (_baseUri.OriginalString.EndsWith('/') && MemoryExtensions.Equals(uriPathOnly, _baseUri.OriginalString.AsSpan(0, _baseUri.OriginalString.Length - 1), StringComparison.Ordinal))
273return uri[(_baseUri.OriginalString.Length - 1)..];
521if (uri.StartsWith(baseUri.OriginalString, StringComparison.Ordinal))
525length = baseUri.OriginalString.Length;
531if (baseUri.OriginalString.EndsWith('/') && uriPathOnly.Equals(baseUri.OriginalString.AsSpan(0, baseUri.OriginalString.Length - 1), StringComparison.Ordinal))
539length = baseUri.OriginalString.Length - 1;
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Mvc.Core.Test (4)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Microsoft.AspNetCore.Rewrite.Tests (34)
IISUrlRewrite\MiddleWareTests.cs (10)
47Assert.Equal("/article.aspx?id=10&title=hey", response.Headers.Location.OriginalString);
147Assert.Equal("/hello", response.Headers.Location.OriginalString);
182Assert.Equal("/hey/hello", response.Headers.Location.OriginalString);
217Assert.Equal("/hey/hello/", response.Headers.Location.OriginalString);
251Assert.Equal("https://example.com/", response.Headers.Location.OriginalString);
365Assert.Equal("/", response.Headers.Location.OriginalString);
434Assert.Equal("/foo", response.Headers.Location.OriginalString);
472Assert.Equal("/hey/hello/", response.Headers.Location.OriginalString);
508Assert.Equal("/blogposts/article/abc?p1=123&p2=abc", response.Headers.Location.OriginalString);
544Assert.Equal("/blog/article/23/abc?p1=123&p2=abc", response.Headers.Location.OriginalString);
MiddlewareTests.cs (21)
174Assert.Equal(expectedUrl, response.Headers.Location.OriginalString);
204Assert.Equal("http://example.com/foo", response.Headers.Location.OriginalString);
228Assert.Equal("http://example.com/foo?bar=1", response.Headers.Location.OriginalString);
256Assert.Equal("https://example.com/", response.Headers.Location.OriginalString);
285Assert.Equal($"https://example.com:{sslPort.GetValueOrDefault().ToString(CultureInfo.InvariantCulture)}/", response.Headers.Location.OriginalString);
289Assert.Equal("https://example.com/", response.Headers.Location.OriginalString);
329Assert.Equal("https://" + expectedHostPathAndQuery, response.Headers.Location.OriginalString);
359Assert.Equal(redirectReplacement, response.Headers.Location.OriginalString);
383Assert.Equal("https://example.com/", response.Headers.Location.OriginalString);
410Assert.Equal(expected, response.Headers.Location.OriginalString);
439Assert.Equal("https://www.example.com/", response.Headers.Location.OriginalString);
468Assert.Equal(redirectUri, response.Headers.Location.OriginalString);
493Assert.Equal("https://www.example.com/", response.Headers.Location.OriginalString);
556Assert.Equal("https://example.com/", response.Headers.Location.OriginalString);
585Assert.Equal(redirectUri, response.Headers.Location.OriginalString);
610Assert.Equal("https://example.com/", response.Headers.Location.OriginalString);
634Assert.Equal("/", response.Headers.Location.OriginalString);
726Assert.Equal("/foo", response.Headers.Location.OriginalString);
783Assert.Equal(redirectUri, response.Headers.Location.OriginalString);
808Assert.Equal("https://www.example.com/", response.Headers.Location.OriginalString);
837Assert.Equal("https://www.example.com/", response.Headers.Location.OriginalString);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Microsoft.DotNet.NuGetRepack.Tasks (2)
Microsoft.Maui (1)
Microsoft.Maui.Controls (19)
Microsoft.VisualStudio.LanguageServices (3)
PresentationCore (4)
PresentationFramework (12)
ReachFramework (5)
System.ComponentModel.TypeConverter (4)
System.IO.Packaging (2)
System.Net.Mail (1)
System.Net.Requests (1)
System.Private.Uri (17)
System.Private.Xml (13)
System.Runtime.Serialization.Schema (1)
System.ServiceModel.Federation (1)
System.Text.Json (2)
System.Windows.Forms (3)
System.Windows.Forms.Tests (17)
System.Xaml (5)
Templates.Blazor.Tests (1)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (1)
Templates.Tests (1)