Skip to content

Commit

Permalink
Update TestClasses.Constructor.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar committed Feb 20, 2023
1 parent 67ade48 commit 9c6c227
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,7 @@ public async Task TestClassWithDefaultCtorParams()
JsonTestHelper.AssertJsonEqual(json, await Serializer.SerializeWrapper(obj));
}

#if FIXED
[Fact]
public async Task TestClassWithManyConstructorParameters()
{
Expand All @@ -1441,7 +1442,7 @@ public async Task TestClassWithManyConstructorParameters()

Assert.Equal(value, result); // Type is C# record that implements structural equality.
}

#endif
public class ClassWithDefaultCtorParams
{
public Point_2D_Struct_WithAttribute Struct { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ protected ConstructorTests_Metadata(JsonSerializerWrapper stringWrapper)
[JsonSerializable(typeof(LargeType_IgnoredProp_Bind_Param))]
[JsonSerializable(typeof(ClassWithIgnoredSameType))]
[JsonSerializable(typeof(ClassWithDefaultCtorParams))]
#if FIXED
[JsonSerializable(typeof(ClassWithManyConstructorParameters))]
#endif
[JsonSerializable(typeof(ClassWithInvalidArray))]
[JsonSerializable(typeof(ClassWithInvalidDictionary))]
[JsonSerializable(typeof(TypeWithEnumParameters))]
Expand Down Expand Up @@ -280,7 +282,9 @@ public ConstructorTests_Default(JsonSerializerWrapper jsonSerializer) : base(jso
[JsonSerializable(typeof(LargeType_IgnoredProp_Bind_Param))]
[JsonSerializable(typeof(ClassWithIgnoredSameType))]
[JsonSerializable(typeof(ClassWithDefaultCtorParams))]
#if FIXED
[JsonSerializable(typeof(ClassWithManyConstructorParameters))]
#endif
[JsonSerializable(typeof(ClassWithInvalidArray))]
[JsonSerializable(typeof(ClassWithInvalidDictionary))]
[JsonSerializable(typeof(TypeWithEnumParameters))]
Expand Down

0 comments on commit 9c6c227

Please sign in to comment.