test: add banner test.

This commit is contained in:
Dong Bin
2025-01-03 20:04:13 +08:00
parent d09431a9f5
commit c61d37e9e8
6 changed files with 121 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
using Avalonia;
using System.Diagnostics.CodeAnalysis;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Media;
@@ -12,12 +13,14 @@ public class Avatar : Button
public static readonly StyledProperty<object?> HoverMaskProperty = AvaloniaProperty.Register<Avatar, object?>(
nameof(HoverMask));
[ExcludeFromCodeCoverage]
public IImage? Source
{
get => GetValue(SourceProperty);
set => SetValue(SourceProperty, value);
}
[ExcludeFromCodeCoverage]
public object? HoverMask
{
get => GetValue(HoverMaskProperty);