A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
536 B

using System.Runtime.CompilerServices;
using Avalonia.Platform;
namespace Avalonia.UnitTests;
internal class MockScreen : Screen
{
public MockScreen(double scaling, PixelRect bounds, PixelRect workingArea, bool isPrimary)
{
Scaling = scaling;
Bounds = bounds;
WorkingArea = workingArea;
IsPrimary = isPrimary;
}
public override int GetHashCode()
=> RuntimeHelpers.GetHashCode(this);
public override bool Equals(Screen? other)
=> ReferenceEquals(this, other);
}