From 4deca61b75fcb9319af88e0010cd89ee07a72628 Mon Sep 17 00:00:00 2001 From: Debbie O'Brien Date: Mon, 6 May 2024 17:41:50 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Max Schmitt Signed-off-by: Debbie O'Brien --- docs/src/trace-viewer-intro-csharp.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/src/trace-viewer-intro-csharp.md b/docs/src/trace-viewer-intro-csharp.md index 09cb4a01bd..0b9713c467 100644 --- a/docs/src/trace-viewer-intro-csharp.md +++ b/docs/src/trace-viewer-intro-csharp.md @@ -38,7 +38,7 @@ public class Tests : PageTest { await Context.Tracing.StartAsync(new() { - Title = TestContext.CurrentContext.Test.ClassName + "." + TestContext.CurrentContext.Test.Name, + Title = $"{TestContext.CurrentContext.Test.ClassName}.{TestContext.CurrentContext.Test.Name}", Screenshots = true, Snapshots = true, Sources = true @@ -84,8 +84,7 @@ public class ExampleTest : PageTest { await Context.Tracing.StartAsync(new() { - Title = TestContext.CurrentContext.Test.ClassName + "." + TestContext. - CurrentContext.Test.Name, + Title = $"{TestContext.FullyQualifiedTestClassName}.{TestContext.TestName}", Screenshots = true, Snapshots = true, Sources = true @@ -100,7 +99,7 @@ public class ExampleTest : PageTest Path = Path.Combine( Environment.CurrentDirectory, "playwright-traces", - $"{TestContext.CurrentContext.Test.ClassName}.{TestContext.CurrentContext.Test.Name}.zip" + $"{TestContext.FullyQualifiedTestClassName}.{TestContext.TestName}.zip" ) }); }