Skip to content

Commit aacac78

Browse files
Updated DotNetNormalized test scenarios
1 parent ae6ac89 commit aacac78

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

Tests/EventHorizon.Blazor.TypeScript.Interop.Generator.Tests/GenerateClassStatementStringTests/Accessors/Scenarios/DotNetNormalized.Expected.txt

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,66 @@ namespace Examples
167167
return __virtual;
168168
}
169169
}
170+
171+
private Vector3 __string;
172+
public Vector3 @string
173+
{
174+
get
175+
{
176+
if(__string == null)
177+
{
178+
__string = EventHorizonBlazorInterop.GetClass<Vector3>(
179+
this.___guid,
180+
"string",
181+
(entity) =>
182+
{
183+
return new Vector3() { ___guid = entity.___guid };
184+
}
185+
);
186+
}
187+
return __string;
188+
}
189+
}
190+
191+
private Vector3 __this;
192+
public Vector3 @this
193+
{
194+
get
195+
{
196+
if(__this == null)
197+
{
198+
__this = EventHorizonBlazorInterop.GetClass<Vector3>(
199+
this.___guid,
200+
"this",
201+
(entity) =>
202+
{
203+
return new Vector3() { ___guid = entity.___guid };
204+
}
205+
);
206+
}
207+
return __this;
208+
}
209+
}
210+
211+
private Vector3 __params;
212+
public Vector3 @params
213+
{
214+
get
215+
{
216+
if(__params == null)
217+
{
218+
__params = EventHorizonBlazorInterop.GetClass<Vector3>(
219+
this.___guid,
220+
"params",
221+
(entity) =>
222+
{
223+
return new Vector3() { ___guid = entity.___guid };
224+
}
225+
);
226+
}
227+
return __params;
228+
}
229+
}
170230
#endregion
171231

172232
#region Properties

Tests/EventHorizon.Blazor.TypeScript.Interop.Generator.Tests/GenerateClassStatementStringTests/Accessors/Scenarios/DotNetNormalized.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ declare module Examples {
77
get event(): Vector3;
88
get bool(): Vector3;
99
get virtual(): Vector3;
10+
get string(): Vector3;
11+
get this(): Vector3;
12+
get params(): Vector3;
1013
}
1114
}

0 commit comments

Comments
 (0)