Skip to content

Commit 75bfda0

Browse files
vmachacekdansiegel
authored andcommitted
Adding tests
1 parent bdebfaa commit 75bfda0

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
}

0 commit comments

Comments
 (0)