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
638 B

using System;
using Avalonia.Automation.Peers;
using Avalonia.Automation.Provider;
using Avalonia.UnitTests;
using Xunit;
namespace Avalonia.Controls.UnitTests.Automation;
public class TimePickerAutomationPeerTests : ScopedTestBase
{
[Fact]
public void SetValue_Preserves_Style_Binding()
{
var target = new TimePicker();
var peer = (IValueProvider)ControlAutomationPeer.CreatePeerForElement(target);
var time = new TimeSpan(13, 37, 0);
AutomationPeerAssert.PreservesStyleBinding(target, TimePicker.SelectedTimeProperty, null, time,
() => peer.SetValue(time.ToString()));
}
}