pulumi/sdk/dotnet/Pulumi/Testing
Pat Gavlin 683b4de2f0
Add .NET resource ref unit tests. (#6104)
- Add tests that serialize custom and component resources for targets
  that support resource references
- Add tests that serialize custom and component resources for downlevel
  targets
- Add tests that deserialize known custom and component resources
- Add tests that deserialize missing custom and component resources

These changes also fix a few bugs that were encountered during testing:
- Component resource construction was not supported
- Resources with missing packages could not be deserialized

In the latter case, a missing resource is deserialized as a generic
DependencyResource.

These changes also update the signature of IMocks.NewResourceAsync to
allow the returned ID to be null. This is technically a C# breaking change
with respect to nullability.

Contributes to #5943.

Co-authored-by: Mikhail Shilkov <github@mikhail.io>
2021-01-14 12:24:41 -08:00
..
IMocks.cs Add .NET resource ref unit tests. (#6104) 2021-01-14 12:24:41 -08:00
MockEngine.cs Unit testing in .NET (#3696) 2020-03-11 23:10:01 +01:00
MockMonitor.cs Add .NET resource ref unit tests. (#6104) 2021-01-14 12:24:41 -08:00
TestOptions.cs Unit testing in .NET (#3696) 2020-03-11 23:10:01 +01:00