Base:
92 references to ToString
dotnet-watch.Tests (1)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.Routing.Tests (9)
Patterns\RoutePatternFactoryTest.cs (8)
242c => Assert.Equal("foo", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()),
243c => Assert.Equal("bar", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()),
244c => Assert.Equal("^(baz)$", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()));
280c => Assert.Equal("^(fizz)$", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()));
287c => Assert.Equal("foo", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()),
288c => Assert.Equal("bar", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()),
289c => Assert.Equal("^(baz)$", Assert.IsType<RegexRouteConstraint>(c.ParameterPolicy).Constraint.ToString()),
375Assert.Equal("^(foo)$", regex.Constraint.ToString());
Microsoft.Build.BuildCheck.UnitTests (30)
EditorConfig_Tests.cs (30)
124Assert.Equal("^.*/abc$", matcher.Regex.ToString());
136Assert.Equal("^.*/[^/]*$", matcher.Regex.ToString());
147Assert.Equal("^.*/[^/]*\\.cs$", matcher.Regex.ToString());
164Assert.Equal("^.*/.*\\.cs$", matcher.Regex.ToString());
174Assert.Equal("^.*/\\.\\.\\.$", matcher.Regex.ToString());
194Assert.Equal("^.*/ab.def$", matcher.Regex.ToString());
207Assert.Equal("^.*/ab\\\\c$", matcher.Regex.ToString());
218Assert.Equal("^.*/\\*.*\\*\\*[^/]*$", matcher.Regex.ToString());
230Assert.Equal("^.*/\\?.\\?[^/]*\\?.$", matcher.Regex.ToString());
244Assert.Equal(@"^.*/abc\{}def$", matcher.Regex.ToString());
256Assert.Equal("^.*/abc,def$", matcher.Regex.ToString());
269Assert.Equal("^.*/[^/]*\\.(?:cs|vb|fs)$", matcher.Regex.ToString());
299Assert.Equal("^/(?:[^/]*\\.cs|subdir/test\\.vb)$", matcher.Regex.ToString());
313Assert.Equal("^.*/(?:)$", matcher.Regex.ToString());
325Assert.Equal("^.*/(?:[^/]*\\.cs)$", matcher.Regex.ToString());
351Assert.Equal("^.*/(?:test(?:\\.cs|\\.vb)|other\\.(?:a(?:bb|cc)))$", matcher.Regex.ToString());
371Assert.Equal("^.*/ab(?:-)cd(?:-|)ef$", matcher.Regex.ToString());
385Assert.Equal("^.*/ab(?:cs|vb|fs)cd$", matcher.Regex.ToString());
505Assert.Equal(@"^.*/[^/]*\.[cf]s$", matcher.Regex.ToString());
516Assert.Equal(@"^.*/[^/]*\.[^cf]s$", matcher.Regex.ToString());
529Assert.Equal(@"^.*/[^/]*\.[\^cf]s$", matcher.Regex.ToString());
543Assert.Equal("^.*/[0-9]x$", matcher.Regex.ToString());
556Assert.Equal("^.*/[^0-9]x$", matcher.Regex.ToString());
569Assert.Equal("^.*/[ab0-9]x$", matcher.Regex.ToString());
614Assert.Equal(@"^.*/[\[a]bc$", matcher.Regex.ToString());
629Assert.Equal(@"^.*/[-ac]bd$", matcher.Regex.ToString());
644Assert.Equal(@"^.*/[ac-]bd$", matcher.Regex.ToString());
658Assert.Equal(@"^.*/[ab]]cd$", matcher.Regex.ToString());
673Assert.Equal(@"^.*/[ab\\]cd$", matcher.Regex.ToString());
686Assert.Equal(@"^.*/ab\[cd$", matcher.Regex.ToString());
Microsoft.Build.Engine.UnitTests (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.UnitTests (30)
Analyzers\AnalyzerConfigTests.cs (30)
377Assert.Equal("^.*/abc$", matcher.Regex.ToString());
389Assert.Equal("^.*/[^/]*$", matcher.Regex.ToString());
400Assert.Equal("^.*/[^/]*\\.cs$", matcher.Regex.ToString());
417Assert.Equal("^.*/.*\\.cs$", matcher.Regex.ToString());
427Assert.Equal("^.*/\\.\\.\\.$", matcher.Regex.ToString());
447Assert.Equal("^.*/ab.def$", matcher.Regex.ToString());
460Assert.Equal("^.*/ab\\\\c$", matcher.Regex.ToString());
471Assert.Equal("^.*/\\*.*\\*\\*[^/]*$", matcher.Regex.ToString());
483Assert.Equal("^.*/\\?.\\?[^/]*\\?.$", matcher.Regex.ToString());
497Assert.Equal(@"^.*/abc\{}def$", matcher.Regex.ToString());
509Assert.Equal("^.*/abc,def$", matcher.Regex.ToString());
522Assert.Equal("^.*/[^/]*\\.(?:cs|vb|fs)$", matcher.Regex.ToString());
552Assert.Equal("^/(?:[^/]*\\.cs|subdir/test\\.vb)$", matcher.Regex.ToString());
566Assert.Equal("^.*/(?:)$", matcher.Regex.ToString());
578Assert.Equal("^.*/(?:[^/]*\\.cs)$", matcher.Regex.ToString());
604Assert.Equal("^.*/(?:test(?:\\.cs|\\.vb)|other\\.(?:a(?:bb|cc)))$", matcher.Regex.ToString());
624Assert.Equal("^.*/ab(?:-)cd(?:-|)ef$", matcher.Regex.ToString());
638Assert.Equal("^.*/ab(?:cs|vb|fs)cd$", matcher.Regex.ToString());
758Assert.Equal(@"^.*/[^/]*\.[cf]s$", matcher.Regex.ToString());
769Assert.Equal(@"^.*/[^/]*\.[^cf]s$", matcher.Regex.ToString());
782Assert.Equal(@"^.*/[^/]*\.[\^cf]s$", matcher.Regex.ToString());
796Assert.Equal("^.*/[0-9]x$", matcher.Regex.ToString());
809Assert.Equal("^.*/[^0-9]x$", matcher.Regex.ToString());
822Assert.Equal("^.*/[ab0-9]x$", matcher.Regex.ToString());
867Assert.Equal(@"^.*/[\[a]bc$", matcher.Regex.ToString());
882Assert.Equal(@"^.*/[-ac]bd$", matcher.Regex.ToString());
897Assert.Equal(@"^.*/[ac-]bd$", matcher.Regex.ToString());
911Assert.Equal(@"^.*/[ab]]cd$", matcher.Regex.ToString());
926Assert.Equal(@"^.*/[ab\\]cd$", matcher.Regex.ToString());
939Assert.Equal(@"^.*/ab\[cd$", matcher.Regex.ToString());
Microsoft.DotNet.Build.Tasks.Feed (12)
Microsoft.DotNet.HotReload.Client.Tests (1)
Microsoft.Extensions.DotNetDeltaApplier.Tests (1)
Microsoft.NET.Build.Containers.UnitTests (1)
Microsoft.WebTools.AspireService.Tests (1)
SemanticSearch.BuildTask.UnitTests (1)
xunit.assert (2)