AttachedPropertyTests.cs 465 B

12345678910111213141516171819202122
  1. using Xunit;
  2. namespace Avalonia.Base.UnitTests
  3. {
  4. public class AttachedPropertyTests
  5. {
  6. [Fact]
  7. public void IsAttached_Returns_True()
  8. {
  9. var property = new AttachedProperty<string>(
  10. "Foo",
  11. typeof(Class1),
  12. new StyledPropertyMetadata<string>());
  13. Assert.True(property.IsAttached);
  14. }
  15. private class Class1 : AvaloniaObject
  16. {
  17. }
  18. }
  19. }