Skip to content

Commit

Permalink
Adjust naming for deserialization from json value
Browse files Browse the repository at this point in the history
  • Loading branch information
andreise committed Jun 8, 2024
1 parent 70f8657 commit d4ac5b2
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ namespace PrimeFuncPack.Core.Tests;
partial class UnitSerializationTests
{
[Theory]
[MemberData(nameof(DeserializeSimpleValueToUnit_ExpectNoException_Cases))]
public static void DeserializeSimpleValueToUnitFromString_ExpectNoException(
[MemberData(nameof(DeserializeValueToUnit_ExpectNoException_Cases))]
public static void DeserializeValueToUnitFromString_ExpectNoException(
JsonValue source,
JsonSerializerOptions? options)
{
Expand All @@ -18,17 +18,17 @@ public static void DeserializeSimpleValueToUnitFromString_ExpectNoException(
}

[Theory]
[MemberData(nameof(DeserializeSimpleValueToUnit_ExpectNoException_Cases))]
public static void DeserializeSimpleValueToUnitFromObject_ExpectNoException(
[MemberData(nameof(DeserializeValueToUnit_ExpectNoException_Cases))]
public static void DeserializeValueToUnitFromObject_ExpectNoException(
JsonValue source,
JsonSerializerOptions? options)
{
_ = JsonSerializer.Deserialize<Unit>(source, options);
}

[Theory]
[MemberData(nameof(DeserializeSimpleValueToUnit_ExpectNoException_Cases))]
public static void DeserializeDtoWithSimpleValueToDtoWithUnitFromString_ExpectNoException(
[MemberData(nameof(DeserializeValueToUnit_ExpectNoException_Cases))]
public static void DeserializeDtoWithValueToDtoWithUnitFromString_ExpectNoException(
JsonValue source,
JsonSerializerOptions? options)
{
Expand All @@ -37,15 +37,15 @@ public static void DeserializeDtoWithSimpleValueToDtoWithUnitFromString_ExpectNo
}

[Theory]
[MemberData(nameof(DeserializeSimpleValueToUnit_ExpectNoException_Cases))]
public static void DeserializeDtoWithSimpleValueToDtoWithUnitFromObject_ExpectNoException(
[MemberData(nameof(DeserializeValueToUnit_ExpectNoException_Cases))]
public static void DeserializeDtoWithValueToDtoWithUnitFromObject_ExpectNoException(
JsonValue source,
JsonSerializerOptions? options)
{
_ = JsonSerializer.Deserialize<DtoWithUnit>(BuildDtoWithValueNode(source), options);
}

public static TheoryData<JsonValue, JsonSerializerOptions?> DeserializeSimpleValueToUnit_ExpectNoException_Cases
public static TheoryData<JsonValue, JsonSerializerOptions?> DeserializeValueToUnit_ExpectNoException_Cases
{
get
{
Expand Down

0 comments on commit d4ac5b2

Please sign in to comment.