We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe26a82 commit 88085caCopy full SHA for 88085ca
Radzen.Blazor.Tests/PropertyAccessTests.cs
@@ -13,17 +13,15 @@ public partial class TestData
13
{
14
public string PROPERTY { get; set; }
15
public string Property { get; set; }
16
-
17
- public Guid Guid { get; set; }
18
}
19
20
[Fact]
21
- public void Getter_With_Member_Named_As_A_Builtin_Type()
+ public void Getter_With_DifferentTargetType()
22
23
- var o = new TestData { Guid = Guid.Empty };
24
- var getter = PropertyAccess.Getter<TestData, Guid>(nameof(TestData.Guid));
+ var o = new TestData { Property = "test" };
+ var getter = PropertyAccess.Getter<object, object>(nameof(TestData.Property), typeof(TestData));
25
var value = getter(o);
26
- Assert.Equal(o.Guid, value);
+ Assert.Equal(o.Property, value);
27
28
29
0 commit comments