ReflectionHelperTests.cs 465 B

1234567891011121314151617181920
  1. using Avalonia.Controls.Utils;
  2. using Xunit;
  3. namespace Avalonia.Controls.DataGridTests.Utils
  4. {
  5. public class ReflectionHelperTests
  6. {
  7. [Fact]
  8. public void SplitPropertyPath_Splits_PropertyPath_With_Cast()
  9. {
  10. var path = "(Type).Property";
  11. var expected = new [] { "Property" };
  12. var result = TypeHelper.SplitPropertyPath(path);
  13. Assert.Equal(expected, result);
  14. }
  15. }
  16. }