From d4ac5b2ef67d15c30b1c51142a3bdb76d5ed22e9 Mon Sep 17 00:00:00 2001 From: Andrei Sergeev Date: Sat, 8 Jun 2024 11:12:46 +0400 Subject: [PATCH] Adjust naming for deserialization from json value --- ...rializationTests.DeserializeValueToUnit.cs} | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) rename src/core-unit/Unit.Tests/UnitSerializationTests/{UnitSerializationTests.DeserializeSimpleValueToUnit.cs => UnitSerializationTests.DeserializeValueToUnit.cs} (74%) diff --git a/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeSimpleValueToUnit.cs b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeValueToUnit.cs similarity index 74% rename from src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeSimpleValueToUnit.cs rename to src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeValueToUnit.cs index 01aa366..80d37e4 100644 --- a/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeSimpleValueToUnit.cs +++ b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeValueToUnit.cs @@ -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) { @@ -18,8 +18,8 @@ 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) { @@ -27,8 +27,8 @@ public static void DeserializeSimpleValueToUnitFromObject_ExpectNoException( } [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) { @@ -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(BuildDtoWithValueNode(source), options); } - public static TheoryData DeserializeSimpleValueToUnit_ExpectNoException_Cases + public static TheoryData DeserializeValueToUnit_ExpectNoException_Cases { get {