TextBlockTests.cs 533 B

12345678910111213141516171819
  1. // Copyright (c) The Avalonia Project. All rights reserved.
  2. // Licensed under the MIT license. See licence.md file in the project root for full license information.
  3. using Avalonia.Data;
  4. using Xunit;
  5. namespace Avalonia.Controls.UnitTests
  6. {
  7. public class TextBlockTests
  8. {
  9. [Fact]
  10. public void DefaultBindingMode_Should_Be_OneWay()
  11. {
  12. Assert.Equal(
  13. BindingMode.OneWay,
  14. TextBlock.TextProperty.GetMetadata(typeof(TextBlock)).DefaultBindingMode);
  15. }
  16. }
  17. }