1 changed files with 27 additions and 0 deletions
@ -0,0 +1,27 @@ |
|||
using Avalonia.Controls.Presenters; |
|||
using Xunit; |
|||
|
|||
namespace Avalonia.Controls.UnitTests.Presenters |
|||
{ |
|||
public class TextPresenter_Tests |
|||
{ |
|||
[Fact] |
|||
public void TextPresenter_can_contain_null_with_password_char_set() |
|||
{ |
|||
var target = new TextPresenter |
|||
{ |
|||
PasswordChar = '*' |
|||
}; |
|||
|
|||
Assert.NotNull(target.FormattedText); |
|||
} |
|||
|
|||
[Fact] |
|||
public void TextPresenter_can_contain_null_without_password_char_set() |
|||
{ |
|||
var target = new TextPresenter(); |
|||
|
|||
Assert.NotNull(target.FormattedText); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue