Skip to content

Commit 88085ca

Browse files
committed
Change the test to be more accurate.
1 parent fe26a82 commit 88085ca

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Radzen.Blazor.Tests/PropertyAccessTests.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@ public partial class TestData
1313
{
1414
public string PROPERTY { get; set; }
1515
public string Property { get; set; }
16-
17-
public Guid Guid { get; set; }
1816
}
1917

2018
[Fact]
21-
public void Getter_With_Member_Named_As_A_Builtin_Type()
19+
public void Getter_With_DifferentTargetType()
2220
{
23-
var o = new TestData { Guid = Guid.Empty };
24-
var getter = PropertyAccess.Getter<TestData, Guid>(nameof(TestData.Guid));
21+
var o = new TestData { Property = "test" };
22+
var getter = PropertyAccess.Getter<object, object>(nameof(TestData.Property), typeof(TestData));
2523
var value = getter(o);
26-
Assert.Equal(o.Guid, value);
24+
Assert.Equal(o.Property, value);
2725
}
2826

2927
[Fact]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy