Skip to content

Commit

Permalink
Fix tests with aggressive trimming enabled (dotnet#73372)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
  • Loading branch information
eiriktsarpalis and jkotas authored Aug 4, 2022
1 parent 876c0be commit 614e763
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,10 @@ public async Task TupleDeserializationWorks()

[Fact]
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.PublicProperties, typeof(Tuple<,,,,,,,>))]
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.PublicProperties, typeof(Tuple<,,,,,,>))]
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.PublicProperties, typeof(Tuple<>))]
public async Task TupleDeserialization_MoreThanSevenItems()
{
var dont_trim_ctor = typeof(Tuple<,,,,,,>).GetConstructors();
dont_trim_ctor = typeof(Tuple<,,,,,,,>).GetConstructors();

// Seven is okay
string json = await Serializer.SerializeWrapper(Tuple.Create(1, 2, 3, 4, 5, 6, 7));
var obj = await Serializer.DeserializeWrapper<Tuple<int, int, int, int, int, int, int>>(json);
Expand Down

0 comments on commit 614e763

Please sign in to comment.