forked from MaterialDesignInXAML/MaterialDesignInXamlToolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTextBoxTests.cs
More file actions
30 lines (26 loc) · 792 Bytes
/
Copy pathTextBoxTests.cs
File metadata and controls
30 lines (26 loc) · 792 Bytes
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 TextBoxTests
{
[StaFact]
[Description("Issue 1301")]
public void DefaultVerticalAlignment_ShouldBeStretch()
{
var testBox = new TextBox();
testBox.ApplyDefaultStyle();
Assert.Equal(VerticalAlignment.Stretch, testBox.VerticalAlignment);
}
[StaFact]
[Description("Issue 1301")]
public void DefaultVerticalContentAlignment_ShouldBeTop()
{
var textBox = new TextBox();
textBox.ApplyDefaultStyle();
Assert.Equal(VerticalAlignment.Top, textBox.VerticalContentAlignment);
}
}
}