More fixes

This commit is contained in:
2026-01-17 05:22:37 +00:00
parent f62d4aa5f2
commit 7d2ac327a3
58 changed files with 754 additions and 666 deletions

View File

@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
using FluentAssertions;
using Microsoft.Maui.Graphics;
using Microsoft.Maui.Platform;
using SkiaSharp;
using Xunit;
@@ -19,7 +20,7 @@ public class SkiaSliderTests
// Assert
slider.Value.Should().Be(0);
slider.Minimum.Should().Be(0);
slider.Maximum.Should().Be(100); // Default maximum is 100
slider.Maximum.Should().Be(1.0); // MAUI Slider.Maximum default is 1.0
slider.IsEnabled.Should().BeTrue();
}
@@ -120,7 +121,7 @@ public class SkiaSliderTests
{
// Arrange
var slider = new SkiaSlider { Value = 50, Minimum = 0, Maximum = 100 };
slider.Bounds = new SKRect(0, 0, 200, 40);
slider.Bounds = new Rect(0, 0, 200, 40);
using var surface = SKSurface.Create(new SKImageInfo(300, 100));
var canvas = surface.Canvas;