static DisableDirScrubbingTests() { VerifierSettings.DontScrubSolutionDirectory(); VerifierSettings.DontScrubProjectDirectory(); var solutionDirectory = AttributeReader.GetSolutionDirectory(); VerifierSettings.AddScrubber(s => s.Replace(solutionDirectory, "CustomReplace\\")); }
void StartBlazorApp() { var projectDir = Path.Combine(AttributeReader.GetSolutionDirectory(), "BlazorWebApp"); ProcessStartInfo startInfo = new("dotnet", "run --no-build --no-restore") { WorkingDirectory = projectDir }; process = Process.Start(startInfo); }
public Task Simple() { var assembly = typeof(AttributeReaderTests).Assembly; return(Verifier.Verify( new { ProjectDirectory = AttributeReader.GetProjectDirectory(assembly), ProjectDirectoryInferred = AttributeReader.GetProjectDirectory(), SolutionDirectory = AttributeReader.GetSolutionDirectory(assembly), SolutionDirectoryInferred = AttributeReader.GetSolutionDirectory() })); }
public Task SolutionDirectory() { return(Verifier.Verify(AttributeReader.GetSolutionDirectory())); }