Browse Source
* Enhance SplitPropertyPath to conditionally handle parentheses in property paths * added test for SplitPropertyPathpull/16296/head
committed by
GitHub
2 changed files with 47 additions and 2 deletions
@ -0,0 +1,20 @@ |
|||
|
|||
using Avalonia.Controls.Utils; |
|||
using Xunit; |
|||
|
|||
namespace Avalonia.Controls.DataGrid.UnitTests.Utils |
|||
{ |
|||
public class ReflectionHelperTests |
|||
{ |
|||
[Fact] |
|||
public void SplitPropertyPath_Splits_PropertyPath_With_Cast() |
|||
{ |
|||
var path = "(Type).Property"; |
|||
var expected = new [] { "Property" }; |
|||
|
|||
var result = TypeHelper.SplitPropertyPath(path); |
|||
|
|||
Assert.Equal(expected, result); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue