Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
nenoNaninu committed Sep 17, 2023
1 parent 518b02a commit d2e5b63
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Tapper.Tests.AsmReference.SourceTypes2/Class1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ public class Class2
public string? Name2 { get; init; }
public Guid Id { get; set; }
}

[TranspilationSource]
public record NestedTypeParentRequest
(IReadOnlyList<NestedTypeParentRequest.NestedTypeNestedTypeParentRequestItem> Items)
{
[TranspilationSource]
public record NestedTypeNestedTypeParentRequestItem(int Value, string? Message);
}
14 changes: 14 additions & 0 deletions tests/Tapper.Tests.AsmReference/UnitTest1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,19 @@ private static async Task ExecCommand(string generatorProject, string projectFul
id: string;
}
/** Transpiled from Tapper.Tests.AsmReference.SourceTypes2.NestedTypeParentRequest */
export type NestedTypeParentRequest = {
/** Transpiled from System.Collections.Generic.IReadOnlyList<Tapper.Tests.AsmReference.SourceTypes2.NestedTypeParentRequest.NestedTypeNestedTypeParentRequestItem> */
items: NestedTypeNestedTypeParentRequestItem[];
}
/** Transpiled from Tapper.Tests.AsmReference.SourceTypes2.NestedTypeParentRequest.NestedTypeNestedTypeParentRequestItem */
export type NestedTypeNestedTypeParentRequestItem = {
/** Transpiled from int */
value: number;
/** Transpiled from string? */
message?: string;
}
";
}

0 comments on commit d2e5b63

Please sign in to comment.