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.
 
 
 

39 lines
912 B

using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace Avalonia.Controls.UnitTests
{
public class SliderTests
{
[Fact]
public void Default_Orientation_Should_Be_Horizontal()
{
var slider = new Slider();
Assert.Equal(Orientation.Horizontal, slider.Orientation);
}
[Fact]
public void Should_Set_Horizontal_Class()
{
var slider = new Slider
{
Orientation = Orientation.Horizontal
};
Assert.Contains(slider.Classes, ":horizontal".Equals);
}
[Fact]
public void Should_Set_Vertical_Class()
{
var slider = new Slider
{
Orientation = Orientation.Vertical
};
Assert.Contains(slider.Classes, ":vertical".Equals);
}
}
}