Skip to content

Commit

Permalink
[dotnet] Correct assertion of struct type in internal tests (Selenium…
Browse files Browse the repository at this point in the history
  • Loading branch information
RenderMichael authored and sandeepsuryaprasad committed Dec 27, 2024
1 parent 7d80967 commit fa78ee0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dotnet/test/common/DevTools/DevToolsProfilerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ private void ValidateProfile(CurrentCdpVersion.Profiler.Profile profiler)
{
Assert.That(profiler, Is.Not.Null);
Assert.That(profiler.Nodes, Is.Not.Null);
Assert.That(profiler.StartTime, Is.Not.Null);
Assert.That(profiler.EndTime, Is.Not.Null);
Assert.That(profiler.StartTime, Is.Not.Zero);
Assert.That(profiler.EndTime, Is.Not.Zero);
Assert.That(profiler.TimeDeltas, Is.Not.Null);
foreach (var delta in profiler.TimeDeltas)
{
Assert.That(delta, Is.Not.Null);
Assert.That(delta, Is.Not.Zero);
}

foreach (var node in profiler.Nodes)
Expand Down
2 changes: 1 addition & 1 deletion dotnet/test/common/DevTools/DevToolsTestFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void Setup()
devTools = driver as IDevTools;
if (devTools == null)
{
Assert.Ignore("{0} does not support Chrome DevTools Protocol", EnvironmentManager.Instance.Browser);
Assert.Ignore($"{EnvironmentManager.Instance.Browser} does not support Chrome DevTools Protocol");
return;
}

Expand Down

0 comments on commit fa78ee0

Please sign in to comment.