AttachedPropertyTests.cs 650 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) The Perspex Project. All rights reserved.
  2. // Licensed under the MIT license. See licence.md file in the project root for full license information.
  3. using Xunit;
  4. namespace Perspex.Base.UnitTests
  5. {
  6. public class AttachedPropertyTests
  7. {
  8. [Fact]
  9. public void IsAttached_Returns_True()
  10. {
  11. var property = new AttachedProperty<string>(
  12. "Foo",
  13. typeof(Class1),
  14. false,
  15. new StyledPropertyMetadata(null));
  16. Assert.True(property.IsAttached);
  17. }
  18. private class Class1 : PerspexObject
  19. {
  20. }
  21. }
  22. }