mirror of
https://github.com/AtomUI/AtomUI.git
synced 2026-10-29 15:19:12 +08:00
22 lines
649 B
C#
22 lines
649 B
C#
using AtomUI.Controls;
|
|
using Avalonia.Layout;
|
|
using Shouldly;
|
|
using Xunit;
|
|
|
|
namespace AtomUI.Desktop.Controls.Tests.Timeline;
|
|
|
|
public class TimelineContractTests
|
|
{
|
|
[Fact]
|
|
public void Timeline_Defaults_To_Vertical_Start_Layout()
|
|
{
|
|
var timeline = new Desktop.Controls.Timeline();
|
|
var orientationProperty = timeline.GetType().GetProperty("Orientation");
|
|
|
|
orientationProperty.ShouldNotBeNull();
|
|
orientationProperty.PropertyType.ShouldBe(typeof(Orientation));
|
|
orientationProperty.GetValue(timeline).ShouldBe(Orientation.Vertical);
|
|
timeline.Mode.ShouldBe(TimelineMode.Start);
|
|
}
|
|
}
|