mirror of https://github.com/pulumi/pulumi.git
26 lines
573 B
Go
26 lines
573 B
Go
package dotnet
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/pulumi/pulumi/pkg/v3/codegen"
|
|
"github.com/pulumi/pulumi/pkg/v3/codegen/testing/test"
|
|
)
|
|
|
|
func TestGenerateProgram(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
test.TestProgramCodegen(t,
|
|
test.ProgramCodegenOptions{
|
|
Language: "dotnet",
|
|
Extension: "cs",
|
|
OutputFile: "Program.cs",
|
|
Check: func(t *testing.T, path string, dependencies codegen.StringSet) {
|
|
Check(t, path, dependencies, "../../../../../../../sdk/dotnet/Pulumi")
|
|
},
|
|
GenProgram: GenerateProgram,
|
|
TestCases: test.PulumiPulumiProgramTests,
|
|
},
|
|
)
|
|
}
|