pulumi/sdk/dotnet/Pulumi.Tests
Fraser Waters c4cd7214d1
Add Union.Bimap and some more InputUnion conversions (#8733)
Resolves https://github.com/pulumi/pulumi/issues/8753

This adds conversion operators so that you can cast a `Union<T0,T1>` or
`Output<Union<T0,T1>>` to an `InputUnion<T0,T1>`. Without this
conversions it wasn't possible to create an `InputUnion` with a union
value, you could only give it a `T0` or `T1` (or an output of them).

This also adds `Union.Bimap` to easily convert both sides of the union,
it was possible to write this with match but Bimap is slightly nicer:
```
union.Match<Union<TResult0, TResult1>>(t0 => mapFunc0(t0), t1 => mapFunc1(t1)))

union.Bimap(mapFunc0, mapFunc1)
```
2022-01-14 14:57:10 +00:00
..
Core Add Union.Bimap and some more InputUnion conversions (#8733) 2022-01-14 14:57:10 +00:00
Deployment Fix null exceptions when reading unknown outputs (#7762) 2021-08-17 09:30:54 -04:00
Mocks Fix master build (#8651) 2021-12-29 15:25:36 -05:00
Resources Set the package on DependencyProviderResource (#7630) 2021-07-27 06:50:24 -07:00
Serialization iwahbe/8474/dont serialize unknown values (#8475) 2021-11-22 12:40:17 -08:00
AssertEx.cs Enable output marshaling in .NET (#8316) 2021-11-12 14:58:34 -08:00
DeploymentTests.cs Await outstanding async work in .NET. (#6993) 2021-05-12 13:23:47 -07:00
Pulumi.Tests.csproj [cli, testing, github] Gather code coverage data in CI. (#8260) 2021-11-30 17:24:01 -08:00
PulumiTest.cs Await outstanding async work in .NET. (#6993) 2021-05-12 13:23:47 -07:00
StackTests.cs Fix 7422 - NullPointerException race on Urn property in C# SDK (#8495) 2021-12-10 11:22:42 -05:00
TestDeploymentLogger.cs Fix 7422 - NullPointerException race on Urn property in C# SDK (#8495) 2021-12-10 11:22:42 -05:00
xunit.runner.json Support microsoft logging extensions with inline programs (#7117) 2021-06-10 23:06:57 -04:00