pulumi/sdk/dotnet/Pulumi/Serialization
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
..
Attributes.cs [dotnet] Resource package registration in .NET (attributes) (#5875) 2020-12-09 23:28:58 +01:00
Constants.cs Add .NET resource ref unit tests. (#6104) 2021-01-14 12:24:41 -08:00
Converter.cs [sdk/dotnet] Fix deserializing resources (#5921) 2020-12-10 22:58:08 -08:00
Deserializer.cs Add .NET resource ref unit tests. (#6104) 2021-01-14 12:24:41 -08:00
OutputCompletionSource.cs Support remote components in .NET (#5485) 2020-10-06 10:19:22 -07:00
OutputData.cs Output.apply should lift resources from inner Outputs to the top level output. (#3663) 2019-12-17 14:11:45 -08:00
ResourcePackages.cs Add .NET resource ref unit tests. (#6104) 2021-01-14 12:24:41 -08:00
Serializer.cs Add .NET resource ref unit tests. (#6104) 2021-01-14 12:24:41 -08:00