Skip to content

Commit 907c674

Browse files
Updated DotNetNormalized properties test
1 parent aacac78 commit 907c674

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

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

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,93 @@ __virtual = null;
234234
);
235235
}
236236
}
237+
238+
private Vector3 __string;
239+
public Vector3 @string
240+
{
241+
get
242+
{
243+
if(__string == null)
244+
{
245+
__string = EventHorizonBlazorInterop.GetClass<Vector3>(
246+
this.___guid,
247+
"string",
248+
(entity) =>
249+
{
250+
return new Vector3() { ___guid = entity.___guid };
251+
}
252+
);
253+
}
254+
return __string;
255+
}
256+
set
257+
{
258+
__string = null;
259+
EventHorizonBlazorInterop.Set(
260+
this.___guid,
261+
"string",
262+
value
263+
);
264+
}
265+
}
266+
267+
private Vector3 __this;
268+
public Vector3 @this
269+
{
270+
get
271+
{
272+
if(__this == null)
273+
{
274+
__this = EventHorizonBlazorInterop.GetClass<Vector3>(
275+
this.___guid,
276+
"this",
277+
(entity) =>
278+
{
279+
return new Vector3() { ___guid = entity.___guid };
280+
}
281+
);
282+
}
283+
return __this;
284+
}
285+
set
286+
{
287+
__this = null;
288+
EventHorizonBlazorInterop.Set(
289+
this.___guid,
290+
"this",
291+
value
292+
);
293+
}
294+
}
295+
296+
private Vector3 __params;
297+
public Vector3 @params
298+
{
299+
get
300+
{
301+
if(__params == null)
302+
{
303+
__params = EventHorizonBlazorInterop.GetClass<Vector3>(
304+
this.___guid,
305+
"params",
306+
(entity) =>
307+
{
308+
return new Vector3() { ___guid = entity.___guid };
309+
}
310+
);
311+
}
312+
return __params;
313+
}
314+
set
315+
{
316+
__params = null;
317+
EventHorizonBlazorInterop.Set(
318+
this.___guid,
319+
"params",
320+
value
321+
);
322+
}
323+
}
237324
#endregion
238325

239326
#region Constructor

Tests/EventHorizon.Blazor.TypeScript.Interop.Generator.Tests/GenerateClassStatementStringTests/Properties/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
event: Vector3;
88
bool: Vector3;
99
virtual: Vector3;
10+
string: Vector3;
11+
this: Vector3;
12+
params: Vector3;
1013
}
1114
}

0 commit comments

Comments
 (0)