forked from MaterialDesignInXAML/MaterialDesignInXamlToolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LabelTests.cs
30 lines (26 loc) · 774 Bytes
/
LabelTests.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
using Xunit;
namespace MaterialDesignThemes.Wpf.Tests
{
public class LabelTests
{
[StaFact]
[Description("Issue 1301")]
public void DefaultVerticalAlignment_ShouldBeStretch()
{
var label = new Label();
label.ApplyDefaultStyle();
Assert.Equal(VerticalAlignment.Stretch, label.VerticalAlignment);
}
[StaFact]
[Description("Issue 1301")]
public void DefaultVerticalContentAlignment_ShouldBeTop()
{
var label = new Label();
label.ApplyDefaultStyle();
Assert.Equal(VerticalAlignment.Top, label.VerticalContentAlignment);
}
}
}