Skip to content

Commit

Permalink
Fix xunit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkatz6 committed Nov 20, 2024
1 parent 6318bfc commit bca4648
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Avalonia.Headless.UnitTests/RenderingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ public async Task Should_Render_To_A_Compositor_Snapshot_Capture()
var snapshot = await compositionVisual.Compositor.CreateCompositionVisualSnapshot(compositionVisual, 1);

Assert.NotNull(snapshot);
Assert.AreEqual(100, snapshot.Size.Width);
Assert.AreEqual(100, snapshot.Size.Height);
// ReSharper disable CompareOfFloatsByEqualityOperator
Assert.True(100 == snapshot.Size.Width);
Assert.True(100 == snapshot.Size.Height);
// ReSharper restore CompareOfFloatsByEqualityOperator
}
}

0 comments on commit bca4648

Please sign in to comment.