pulumi/sdk/dotnet/Pulumi.Tests/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
..
ArgsConverterTests.cs Fix serialization of InvokeArgs (#3614) 2019-12-10 12:20:14 +01:00
BooleanConverterTests.cs
ComplexTypeConverterTests.cs [sdk/dotnet] - Support enums (#5614) 2020-10-30 13:08:32 -07:00
ConverterTests.cs Add .NET resource ref unit tests. (#6104) 2021-01-14 12:24:41 -08:00
EnumConverterTests.cs [sdk/dotnet] - Support enums (#5614) 2020-10-30 13:08:32 -07:00
InternalPropertyTests.cs Filter out internal properties when deserializing data (#3560) 2019-11-21 17:05:39 -05:00
JsonConverterTests.cs Support json values in the .net sdk (#3573) 2019-11-25 23:50:05 -05:00
ListOutputCompletionSourceTests.cs
RecursiveTypeTests.cs Fix stackoverflow when checking conversion types. (#3559) 2019-11-21 18:36:01 -05:00
ResourcePackagesTests.cs Fix looking up empty version in ResourcePackages.TryGetResourceType (#6084) 2021-01-12 08:53:52 -08:00
ResourceRefPropertyTests.cs Add .NET resource ref unit tests. (#6104) 2021-01-14 12:24:41 -08:00
UnionConverterTests.cs Fix stackoverflow when checking conversion types. (#3559) 2019-11-21 18:36:01 -05:00