6 changed files with 72 additions and 11 deletions
@ -0,0 +1,19 @@ |
|||
// Copyright (c) The Perspex Project. All rights reserved.
|
|||
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
|||
|
|||
using Perspex.Data; |
|||
using Xunit; |
|||
|
|||
namespace Perspex.Controls.UnitTests |
|||
{ |
|||
public class TextBlockTests |
|||
{ |
|||
[Fact] |
|||
public void DefaultBindingMode_Should_Be_OneWay() |
|||
{ |
|||
Assert.Equal( |
|||
BindingMode.OneWay, |
|||
TextBlock.TextProperty.GetMetadata(typeof(TextBlock)).DefaultBindingMode); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
// Copyright (c) The Perspex Project. All rights reserved.
|
|||
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
|||
|
|||
using Perspex.Data; |
|||
using Xunit; |
|||
|
|||
namespace Perspex.Controls.UnitTests |
|||
{ |
|||
public class TextBoxTests |
|||
{ |
|||
[Fact] |
|||
public void DefaultBindingMode_Should_Be_TwoWay() |
|||
{ |
|||
Assert.Equal( |
|||
BindingMode.TwoWay, |
|||
TextBox.TextProperty.GetMetadata(typeof(TextBox)).DefaultBindingMode); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue