File tree 2 files changed +46
-0
lines changed
tests/CodeGenHelpers.Tests
2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ //------------------------------------------------------------------------------
2
+ // <auto-generated>
3
+ // This code was generated.
4
+ //
5
+ // Changes to this file may cause incorrect behavior and will be lost if
6
+ // the code is regenerated.
7
+ // </auto-generated>
8
+ //------------------------------------------------------------------------------
9
+
10
+ namespace CodeGenHelpers . SampleCode
11
+ {
12
+ partial class CanPassMultipleParametersOfSameType
13
+ {
14
+ CanPassMultipleParametersOfSameType ( string str1 , string str2 )
15
+ : base ( str1 , str2 )
16
+ {
17
+ }
18
+ }
19
+ }
Original file line number Diff line number Diff line change
1
+ using Xunit ;
2
+ using Xunit . Abstractions ;
3
+
4
+ namespace CodeGenHelpers . Tests ;
5
+
6
+ public class ConstructorBuilderTests : TestBase
7
+ {
8
+ public ConstructorBuilderTests ( ITestOutputHelper testOutput )
9
+ : base ( testOutput )
10
+ {
11
+ }
12
+
13
+ [ Fact ]
14
+ public void CanPassMultipleParametersOfSameType ( )
15
+ {
16
+ var builder = CodeBuilder . Create ( Namespace )
17
+ . AddClass ( "CanPassMultipleParametersOfSameType" ) ;
18
+
19
+ builder . AddConstructor ( ) . WithBaseCall ( new [ ]
20
+ {
21
+ ( "string" , "str1" ) ,
22
+ ( "string" , "str2" ) ,
23
+ } ) ;
24
+
25
+ MakeAssertion ( builder ) ;
26
+ }
27
+ }
You can’t perform that action at this time.
0 commit comments