From 1e409a6c1441fe972d837ba9b92175e6a99f9a3d Mon Sep 17 00:00:00 2001 From: Andrei Sergeev Date: Mon, 20 May 2024 10:06:27 +0400 Subject: [PATCH 1/8] Remove obsoletes --- .../Obsolete/InvokeThenToUnitAsync.00.cs | 32 -- .../Obsolete/InvokeThenToUnitAsync.01.cs | 40 -- .../Obsolete/InvokeThenToUnitAsync.02.cs | 40 -- .../Obsolete/InvokeThenToUnitAsync.03.cs | 42 -- .../Obsolete/InvokeThenToUnitAsync.04.cs | 44 -- .../Obsolete/InvokeThenToUnitAsync.05.cs | 46 -- .../Obsolete/InvokeThenToUnitAsync.06.cs | 48 --- .../Obsolete/InvokeThenToUnitAsync.07.cs | 50 --- .../Obsolete/InvokeThenToUnitAsync.08.cs | 52 --- .../Obsolete/InvokeThenToUnitAsync.09.cs | 54 --- .../Obsolete/InvokeThenToUnitAsync.10.cs | 56 --- .../Obsolete/InvokeThenToUnitAsync.11.cs | 58 --- .../Obsolete/InvokeThenToUnitAsync.12.cs | 60 --- .../Obsolete/InvokeThenToUnitAsync.13.cs | 62 --- .../Obsolete/InvokeThenToUnitAsync.14.cs | 64 --- .../Obsolete/InvokeThenToUnitAsync.15.cs | 66 --- .../Obsolete/InvokeThenToUnitAsync.16.cs | 68 --- .../Obsolete/InvokeThenToUnit.00.cs | 31 -- .../Obsolete/InvokeThenToUnit.01.cs | 39 -- .../Obsolete/InvokeThenToUnit.02.cs | 39 -- .../Obsolete/InvokeThenToUnit.03.cs | 41 -- .../Obsolete/InvokeThenToUnit.04.cs | 43 -- .../Obsolete/InvokeThenToUnit.05.cs | 45 -- .../Obsolete/InvokeThenToUnit.06.cs | 47 -- .../Obsolete/InvokeThenToUnit.07.cs | 49 --- .../Obsolete/InvokeThenToUnit.08.cs | 51 --- .../Obsolete/InvokeThenToUnit.09.cs | 53 --- .../Obsolete/InvokeThenToUnit.10.cs | 55 --- .../Obsolete/InvokeThenToUnit.11.cs | 57 --- .../Obsolete/InvokeThenToUnit.12.cs | 59 --- .../Obsolete/InvokeThenToUnit.13.cs | 61 --- .../Obsolete/InvokeThenToUnit.14.cs | 63 --- .../Obsolete/InvokeThenToUnit.15.cs | 65 --- .../Obsolete/InvokeThenToUnit.16.cs | 67 --- .../Obsolete/InvokeThenToUnitValueAsync.00.cs | 32 -- .../Obsolete/InvokeThenToUnitValueAsync.01.cs | 40 -- .../Obsolete/InvokeThenToUnitValueAsync.02.cs | 40 -- .../Obsolete/InvokeThenToUnitValueAsync.03.cs | 42 -- .../Obsolete/InvokeThenToUnitValueAsync.04.cs | 44 -- .../Obsolete/InvokeThenToUnitValueAsync.05.cs | 46 -- .../Obsolete/InvokeThenToUnitValueAsync.06.cs | 48 --- .../Obsolete/InvokeThenToUnitValueAsync.07.cs | 50 --- .../Obsolete/InvokeThenToUnitValueAsync.08.cs | 52 --- .../Obsolete/InvokeThenToUnitValueAsync.09.cs | 54 --- .../Obsolete/InvokeThenToUnitValueAsync.10.cs | 56 --- .../Obsolete/InvokeThenToUnitValueAsync.11.cs | 58 --- .../Obsolete/InvokeThenToUnitValueAsync.12.cs | 60 --- .../Obsolete/InvokeThenToUnitValueAsync.13.cs | 62 --- .../Obsolete/InvokeThenToUnitValueAsync.14.cs | 64 --- .../Obsolete/InvokeThenToUnitValueAsync.15.cs | 66 --- .../Obsolete/InvokeThenToUnitValueAsync.16.cs | 68 --- .../Obsolete.InvokeThenToUnit.cs | 399 ----------------- .../Obsolete.InvokeThenToUnitAsync.cs | 401 ------------------ .../Obsolete.InvokeThenToUnitValueAsync.cs | 401 ------------------ 54 files changed, 3830 deletions(-) delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.00.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.01.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.02.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.03.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.04.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.05.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.06.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.07.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.08.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.09.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.10.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.11.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.12.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.13.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.14.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.15.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.16.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.00.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.01.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.02.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.03.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.04.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.05.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.06.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.07.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.08.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.09.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.10.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.11.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.12.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.13.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.14.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.15.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.16.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.00.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.01.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.02.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.03.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.04.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.05.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.06.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.07.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.08.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.09.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.10.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.11.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.12.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.13.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.14.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.15.cs delete mode 100644 src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.16.cs delete mode 100644 src/core-unit/Unit/UnitExtensions.Obsolete/Obsolete.InvokeThenToUnit.cs delete mode 100644 src/core-unit/Unit/UnitExtensions.Obsolete/Obsolete.InvokeThenToUnitAsync.cs delete mode 100644 src/core-unit/Unit/UnitExtensions.Obsolete/Obsolete.InvokeThenToUnitValueAsync.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.00.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.00.cs deleted file mode 100644 index 7aa06a55..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.00.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Moq; -using NUnit.Framework; -using System; -using System.Threading.Tasks; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_00_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync()); - - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_00_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var actual = await funcAsync.InvokeThenToUnitAsync(); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(f => f.Invoke(), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.01.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.01.cs deleted file mode 100644 index a8303c06..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.01.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_01_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - var arg = SomeTextStructType; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg)); - - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - [TestCase(true)] - [TestCase(false)] - public async Task InvokeThenToUnitAsync_01_ExpectCallFuncOnce( - bool isArgNull) - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg = isArgNull ? null : MinusFifteenIdRefType; - var actual = await funcAsync.InvokeThenToUnitAsync(arg); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(f => f.Invoke(arg), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.02.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.02.cs deleted file mode 100644 index cbb7a064..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.02.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_02_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_02_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(f => f.Invoke(arg1, arg2), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.03.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.03.cs deleted file mode 100644 index 932ec9a1..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.03.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_03_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_03_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(f => f.Invoke(arg1, arg2, arg3), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.04.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.04.cs deleted file mode 100644 index bee4edba..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.04.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_04_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_04_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(f => f.Invoke(arg1, arg2, arg3, arg4), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.05.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.05.cs deleted file mode 100644 index 4852802d..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.05.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_05_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_05_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.06.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.06.cs deleted file mode 100644 index e7604085..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.06.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_06_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_06_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.07.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.07.cs deleted file mode 100644 index 51b86b4a..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.07.cs +++ /dev/null @@ -1,50 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_07_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_07_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.08.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.08.cs deleted file mode 100644 index 5919e4e1..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.08.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_08_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_08_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.09.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.09.cs deleted file mode 100644 index f26d7589..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.09.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_09_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_09_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.10.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.10.cs deleted file mode 100644 index 28bf04ff..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.10.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_10_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_10_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.11.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.11.cs deleted file mode 100644 index 83ea0a71..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.11.cs +++ /dev/null @@ -1,58 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_11_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_11_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.12.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.12.cs deleted file mode 100644 index 5ddbf8dd..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.12.cs +++ /dev/null @@ -1,60 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_12_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_12_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.13.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.13.cs deleted file mode 100644 index 8b56e4cc..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.13.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_13_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_13_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.14.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.14.cs deleted file mode 100644 index c7fc6efa..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.14.cs +++ /dev/null @@ -1,64 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_14_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - var arg14 = MinusFifteenIdRefType; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_14_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - var arg14 = (object?)null; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.15.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.15.cs deleted file mode 100644 index 6e40d335..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.15.cs +++ /dev/null @@ -1,66 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_15_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - var arg14 = MinusFifteenIdRefType; - var arg15 = ThreeWhiteSpacesString; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_15_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - var arg14 = (object?)null; - var arg15 = ThreeWhiteSpacesString; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.16.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.16.cs deleted file mode 100644 index d1dbb292..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Obsolete/InvokeThenToUnitAsync.16.cs +++ /dev/null @@ -1,68 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitAsync_16_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - var arg14 = MinusFifteenIdRefType; - var arg15 = ThreeWhiteSpacesString; - var arg16 = long.MaxValue; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16)); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitAsync_16_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(Task.CompletedTask); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - var arg14 = (object?)null; - var arg15 = ThreeWhiteSpacesString; - var arg16 = long.MaxValue; - - var actual = await funcAsync.InvokeThenToUnitAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.00.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.00.cs deleted file mode 100644 index b6ed3bcc..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.00.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Moq; -using NUnit.Framework; -using System; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_00_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit()); - - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_00_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var actual = action.InvokeThenToUnit(); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.01.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.01.cs deleted file mode 100644 index 1896ddf6..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.01.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_01_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - var arg = SomeTextStructType; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg)); - - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - [TestCase(true)] - [TestCase(false)] - public void InvokeThenToUnit_01_ExpectCallActionOnce( - bool isArgNull) - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg = isArgNull ? null : PlusFifteenIdRefType; - var actual = action.InvokeThenToUnit(arg); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.02.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.02.cs deleted file mode 100644 index 9a70222e..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.02.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_02_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_02_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - - var actual = action.InvokeThenToUnit(arg1, arg2); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.03.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.03.cs deleted file mode 100644 index 3d035f1d..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.03.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_03_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_03_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.04.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.04.cs deleted file mode 100644 index 295385a0..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.04.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_04_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3, arg4)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_04_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3, arg4); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3, arg4), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.05.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.05.cs deleted file mode 100644 index 703ff6b6..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.05.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_05_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_05_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.06.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.06.cs deleted file mode 100644 index 0d94741b..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.06.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_06_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_06_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.07.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.07.cs deleted file mode 100644 index 37b0c765..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.07.cs +++ /dev/null @@ -1,49 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_07_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = NullTextStructType; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_07_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = (StructType?)null; - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.08.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.08.cs deleted file mode 100644 index 3b065def..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.08.cs +++ /dev/null @@ -1,51 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_08_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyOnePointThree; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_08_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyOnePointThree; - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.09.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.09.cs deleted file mode 100644 index bcf71d09..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.09.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_09_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_09_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.10.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.10.cs deleted file mode 100644 index 668b28dd..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.10.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_10_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_10_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.11.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.11.cs deleted file mode 100644 index fad9b5b3..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.11.cs +++ /dev/null @@ -1,57 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_11_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = OtherTextStructType; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_11_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = OtherTextStructType; - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.12.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.12.cs deleted file mode 100644 index 3c99988c..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.12.cs +++ /dev/null @@ -1,59 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_12_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = OtherTextStructType; - var arg12 = SomeOtherText; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_12_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = OtherTextStructType; - var arg12 = SomeOtherText; - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.13.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.13.cs deleted file mode 100644 index 30eb5b46..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.13.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_13_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = OtherTextStructType; - var arg12 = SomeOtherText; - var arg13 = PlusTwentyOnePointSeventyFive; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_13_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = OtherTextStructType; - var arg12 = SomeOtherText; - var arg13 = PlusTwentyOnePointSeventyFive; - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.14.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.14.cs deleted file mode 100644 index 97ed7cea..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.14.cs +++ /dev/null @@ -1,63 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_14_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = OtherTextStructType; - var arg12 = SomeOtherText; - var arg13 = PlusTwentyOnePointSeventyFive; - var arg14 = MinusFifteenIdRefType; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_14_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = OtherTextStructType; - var arg12 = SomeOtherText; - var arg13 = PlusTwentyOnePointSeventyFive; - var arg14 = (object?)null; - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.15.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.15.cs deleted file mode 100644 index 3c947e9a..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.15.cs +++ /dev/null @@ -1,65 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_15_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = OtherTextStructType; - var arg12 = SomeOtherText; - var arg13 = PlusTwentyOnePointSeventyFive; - var arg14 = MinusFifteenIdRefType; - var arg15 = ThreeWhiteSpacesString; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_15_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = OtherTextStructType; - var arg12 = SomeOtherText; - var arg13 = PlusTwentyOnePointSeventyFive; - var arg14 = (object?)null; - var arg15 = ThreeWhiteSpacesString; - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.16.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.16.cs deleted file mode 100644 index 848a3dbe..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Obsolete/InvokeThenToUnit.16.cs +++ /dev/null @@ -1,67 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvokeTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnit_16_ActionIsNull_ExpectArgumentNullException() - { - Action action = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = OtherTextStructType; - var arg12 = SomeOtherText; - var arg13 = PlusTwentyOnePointSeventyFive; - var arg14 = MinusFifteenIdRefType; - var arg15 = ThreeWhiteSpacesString; - var arg16 = long.MaxValue; - - var ex = Assert.Throws(() => _ = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16)); - Assert.That(ex!.ParamName, Is.EqualTo("action")); - } - - [Obsolete] - [Test] - public void InvokeThenToUnit_16_ExpectCallActionOnce() - { - var mockAction = MockActionFactory.CreateMockAction(); - var action = new Action(mockAction.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusTwentyOne; - var arg5 = new { Value = PlusOneHundredPointFive }; - var arg6 = Year2017March25H19Min31; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyOnePointThree; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = OtherTextStructType; - var arg12 = SomeOtherText; - var arg13 = PlusTwentyOnePointSeventyFive; - var arg14 = (object?)null; - var arg15 = ThreeWhiteSpacesString; - var arg16 = long.MaxValue; - - var actual = action.InvokeThenToUnit(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockAction.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.00.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.00.cs deleted file mode 100644 index 65d3e77e..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.00.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Moq; -using NUnit.Framework; -using System; -using System.Threading.Tasks; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_00_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync().AsTask()); - - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_00_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var actual = await funcAsync.InvokeThenToUnitValueAsync(); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(f => f.Invoke(), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.01.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.01.cs deleted file mode 100644 index 0ddac7df..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.01.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_01_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - var arg = SomeTextStructType; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg).AsTask()); - - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - [TestCase(true)] - [TestCase(false)] - public async Task InvokeThenToUnitValueAsync_01_ExpectCallFuncOnce( - bool isArgNull) - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg = isArgNull ? null : MinusFifteenIdRefType; - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(f => f.Invoke(arg), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.02.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.02.cs deleted file mode 100644 index c7eac358..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.02.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_02_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_02_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(f => f.Invoke(arg1, arg2), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.03.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.03.cs deleted file mode 100644 index 078041e7..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.03.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_03_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_03_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(f => f.Invoke(arg1, arg2, arg3), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.04.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.04.cs deleted file mode 100644 index 5bab631b..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.04.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_04_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_04_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(f => f.Invoke(arg1, arg2, arg3, arg4), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.05.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.05.cs deleted file mode 100644 index d0aab44b..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.05.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_05_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_05_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.06.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.06.cs deleted file mode 100644 index 8e0f8515..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.06.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_06_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_06_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.07.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.07.cs deleted file mode 100644 index 1cf44f82..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.07.cs +++ /dev/null @@ -1,50 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_07_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_07_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.08.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.08.cs deleted file mode 100644 index 9df2abdc..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.08.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_08_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_08_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.09.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.09.cs deleted file mode 100644 index 1e39b8ba..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.09.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_09_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_09_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.10.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.10.cs deleted file mode 100644 index 918d4f37..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.10.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_10_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_10_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.11.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.11.cs deleted file mode 100644 index b7d70eb9..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.11.cs +++ /dev/null @@ -1,58 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_11_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_11_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.12.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.12.cs deleted file mode 100644 index ccabaa76..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.12.cs +++ /dev/null @@ -1,60 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_12_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_12_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.13.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.13.cs deleted file mode 100644 index 190704ad..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.13.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_13_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_13_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.14.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.14.cs deleted file mode 100644 index 086beb73..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.14.cs +++ /dev/null @@ -1,64 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_14_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - var arg14 = MinusFifteenIdRefType; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_14_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - var arg14 = (object?)null; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.15.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.15.cs deleted file mode 100644 index 21ee6217..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.15.cs +++ /dev/null @@ -1,66 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_15_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - var arg14 = MinusFifteenIdRefType; - var arg15 = ThreeWhiteSpacesString; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_15_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - var arg14 = (object?)null; - var arg15 = ThreeWhiteSpacesString; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15), Times.Once); - } -} diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.16.cs b/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.16.cs deleted file mode 100644 index 3922a687..00000000 --- a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Obsolete/InvokeThenToUnitValueAsync.16.cs +++ /dev/null @@ -1,68 +0,0 @@ -using Moq; -using NUnit.Framework; -using PrimeFuncPack.UnitTest; -using System; -using System.Threading.Tasks; -using static PrimeFuncPack.UnitTest.TestData; - -namespace PrimeFuncPack.Core.Tests; - -partial class UnitExtensionsInvoketValueAsyncTests -{ - [Obsolete] - [Test] - public void InvokeThenToUnitValueAsync_16_FuncIsNull_ExpectArgumentNullException() - { - Func funcAsync = null!; - - var arg1 = SomeTextStructType; - var arg2 = PlusFifteenIdRefType; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = NullTextStructType; - var arg8 = MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - var arg14 = MinusFifteenIdRefType; - var arg15 = ThreeWhiteSpacesString; - var arg16 = long.MaxValue; - - var ex = Assert.ThrowsAsync(() => _ = funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16).AsTask()); - Assert.That(ex!.ParamName, Is.EqualTo("funcAsync")); - } - - [Obsolete] - [Test] - public async Task InvokeThenToUnitValueAsync_16_ExpectCallFuncOnce() - { - var mockFuncAsync = MockFuncFactory.CreateMockFunc(default); - var funcAsync = new Func(mockFuncAsync.Object.Invoke); - - var arg1 = SomeTextStructType; - var arg2 = (RefType?)null; - var arg3 = TabString; - var arg4 = MinusFortyFive; - var arg5 = new { Value = PlusTwoHundredPointFive }; - var arg6 = Year2015March11H01Min15; - var arg7 = (StructType?)null; - var arg8 = (decimal?)MinusSeventyFivePointSeven; - var arg9 = ZeroIdRefType; - var arg10 = new object(); - var arg11 = CustomStringStructType; - var arg12 = CustomText; - var arg13 = PlusFortyOnePointSeventyFive; - var arg14 = (object?)null; - var arg15 = ThreeWhiteSpacesString; - var arg16 = long.MaxValue; - - var actual = await funcAsync.InvokeThenToUnitValueAsync(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16); - - Assert.That(actual, Is.EqualTo(Unit.Value)); - mockFuncAsync.Verify(a => a.Invoke(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16), Times.Once); - } -} diff --git a/src/core-unit/Unit/UnitExtensions.Obsolete/Obsolete.InvokeThenToUnit.cs b/src/core-unit/Unit/UnitExtensions.Obsolete/Obsolete.InvokeThenToUnit.cs deleted file mode 100644 index d325c3dd..00000000 --- a/src/core-unit/Unit/UnitExtensions.Obsolete/Obsolete.InvokeThenToUnit.cs +++ /dev/null @@ -1,399 +0,0 @@ -namespace System; - -partial class UnitExtensions -{ - // TODO: Remove the obsoletes in v3.0 - - private const string ObsoleteMessage_InvokeThenToUnit = "This method is obsolete. Call InvokeAsFunc instead."; - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action))); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T obj) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - obj); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3, - arg4); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3, - arg4, - arg5); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12, - T13 arg13) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12, - arg13); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12, - T13 arg13, - T14 arg14) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12, - arg13, - arg14); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12, - T13 arg13, - T14 arg14, - T15 arg15) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12, - arg13, - arg14, - arg15); - - [Obsolete(ObsoleteMessage_InvokeThenToUnit, error: true)] - public static Unit InvokeThenToUnit( - this Action action, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12, - T13 arg13, - T14 arg14, - T15 arg15, - T16 arg16) - => - Unit.InternalInvoke( - action ?? throw new ArgumentNullException(nameof(action)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12, - arg13, - arg14, - arg15, - arg16); -} diff --git a/src/core-unit/Unit/UnitExtensions.Obsolete/Obsolete.InvokeThenToUnitAsync.cs b/src/core-unit/Unit/UnitExtensions.Obsolete/Obsolete.InvokeThenToUnitAsync.cs deleted file mode 100644 index d628b1fc..00000000 --- a/src/core-unit/Unit/UnitExtensions.Obsolete/Obsolete.InvokeThenToUnitAsync.cs +++ /dev/null @@ -1,401 +0,0 @@ -using System.Threading.Tasks; - -namespace System; - -partial class UnitExtensions -{ - // TODO: Remove the obsoletes in v3.0 - - private const string ObsoleteMessage_InvokeThenToUnitAsync = "This method is obsolete. Call InvokeAsFuncAsync instead."; - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync))); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T obj) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - obj); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12, - T13 arg13) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12, - arg13); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12, - T13 arg13, - T14 arg14) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12, - arg13, - arg14); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12, - T13 arg13, - T14 arg14, - T15 arg15) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12, - arg13, - arg14, - arg15); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitAsync, error: true)] - public static Task InvokeThenToUnitAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12, - T13 arg13, - T14 arg14, - T15 arg15, - T16 arg16) - => - Unit.InternalInvokeAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12, - arg13, - arg14, - arg15, - arg16); -} diff --git a/src/core-unit/Unit/UnitExtensions.Obsolete/Obsolete.InvokeThenToUnitValueAsync.cs b/src/core-unit/Unit/UnitExtensions.Obsolete/Obsolete.InvokeThenToUnitValueAsync.cs deleted file mode 100644 index e254eb2b..00000000 --- a/src/core-unit/Unit/UnitExtensions.Obsolete/Obsolete.InvokeThenToUnitValueAsync.cs +++ /dev/null @@ -1,401 +0,0 @@ -using System.Threading.Tasks; - -namespace System; - -partial class UnitExtensions -{ - // TODO: Remove the obsoletes in v3.0 - - private const string ObsoleteMessage_InvokeThenToUnitValueAsync = "This method is obsolete. Call InvokeAsFuncValueAsync instead."; - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync))); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T obj) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - obj); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12, - T13 arg13) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12, - arg13); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12, - T13 arg13, - T14 arg14) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12, - arg13, - arg14); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12, - T13 arg13, - T14 arg14, - T15 arg15) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12, - arg13, - arg14, - arg15); - - [Obsolete(ObsoleteMessage_InvokeThenToUnitValueAsync, error: true)] - public static ValueTask InvokeThenToUnitValueAsync( - this Func funcAsync, - T1 arg1, - T2 arg2, - T3 arg3, - T4 arg4, - T5 arg5, - T6 arg6, - T7 arg7, - T8 arg8, - T9 arg9, - T10 arg10, - T11 arg11, - T12 arg12, - T13 arg13, - T14 arg14, - T15 arg15, - T16 arg16) - => - Unit.InternalInvokeValueAsync( - funcAsync ?? throw new ArgumentNullException(nameof(funcAsync)), - arg1, - arg2, - arg3, - arg4, - arg5, - arg6, - arg7, - arg8, - arg9, - arg10, - arg11, - arg12, - arg13, - arg14, - arg15, - arg16); -} From 361c3888445528e0c0dc6f7b9a4ed4964f994cc0 Mon Sep 17 00:00:00 2001 From: Andrei Sergeev Date: Wed, 22 May 2024 08:39:59 +0400 Subject: [PATCH 2/8] Update version / license info --- LICENSE | 2 +- src/core-unit/Unit.Tests/Unit.Tests.csproj | 2 +- src/core-unit/Unit/Unit.csproj | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LICENSE b/LICENSE index 64bdac4b..48f4c860 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2023 Andrei Sergeev, Pavel Moskovoy +Copyright (c) 2020-2024 Andrei Sergeev, Pavel Moskovoy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/core-unit/Unit.Tests/Unit.Tests.csproj b/src/core-unit/Unit.Tests/Unit.Tests.csproj index 4b90dc7d..095d497a 100644 --- a/src/core-unit/Unit.Tests/Unit.Tests.csproj +++ b/src/core-unit/Unit.Tests/Unit.Tests.csproj @@ -10,7 +10,7 @@ false true Andrei Sergeev, Pavel Moskovoy - Copyright © 2020-2023 Andrei Sergeev, Pavel Moskovoy + Copyright © 2020-2024 Andrei Sergeev, Pavel Moskovoy PrimeFuncPack.Core.Tests PrimeFuncPack.Core.Unit.Tests diff --git a/src/core-unit/Unit/Unit.csproj b/src/core-unit/Unit/Unit.csproj index a1afaec9..46a1fe94 100644 --- a/src/core-unit/Unit/Unit.csproj +++ b/src/core-unit/Unit/Unit.csproj @@ -14,11 +14,11 @@ https://github.com/pfpack/pfpack-core-unit pfpack Andrei Sergeev, Pavel Moskovoy - Copyright © 2020-2023 Andrei Sergeev, Pavel Moskovoy + Copyright © 2020-2024 Andrei Sergeev, Pavel Moskovoy PrimeFuncPack Core.Unit is a core library for .NET consisting of Unit type targeted for use in functional programming. System PrimeFuncPack.Core.Unit - 2.2.1 + 3.0.0-preview.1 From 2d8ebc3fe3cff2a90c9227af7105f033d5a4e59d Mon Sep 17 00:00:00 2001 From: Andrei Sergeev Date: Wed, 22 May 2024 08:56:57 +0400 Subject: [PATCH 3/8] Update test dependencies --- src/core-unit/Unit.Tests/Unit.Tests.csproj | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/core-unit/Unit.Tests/Unit.Tests.csproj b/src/core-unit/Unit.Tests/Unit.Tests.csproj index 095d497a..6eec2279 100644 --- a/src/core-unit/Unit.Tests/Unit.Tests.csproj +++ b/src/core-unit/Unit.Tests/Unit.Tests.csproj @@ -16,15 +16,18 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + - - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + From 6b386efc6def5624fdaa7fb5bffb4c2a3dacd0b1 Mon Sep 17 00:00:00 2001 From: Andrei Sergeev Date: Wed, 22 May 2024 09:11:26 +0400 Subject: [PATCH 4/8] Remove net6.0;net7.0 from multi-target --- .github/workflows/dotnet.yml | 2 -- src/core-unit/Unit.Tests/Unit.Tests.csproj | 2 +- src/core-unit/Unit/Unit.csproj | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index c8664d17..65a962b3 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -22,8 +22,6 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: | - 6.0.x - 7.0.x 8.0.x # Create Local NuGet Source diff --git a/src/core-unit/Unit.Tests/Unit.Tests.csproj b/src/core-unit/Unit.Tests/Unit.Tests.csproj index 6eec2279..7dd41dc8 100644 --- a/src/core-unit/Unit.Tests/Unit.Tests.csproj +++ b/src/core-unit/Unit.Tests/Unit.Tests.csproj @@ -1,7 +1,7 @@ - net6.0;net7.0;net8.0 + net8.0 latest disable enable diff --git a/src/core-unit/Unit/Unit.csproj b/src/core-unit/Unit/Unit.csproj index 46a1fe94..1fe594a3 100644 --- a/src/core-unit/Unit/Unit.csproj +++ b/src/core-unit/Unit/Unit.csproj @@ -1,7 +1,7 @@  - net6.0;net7.0;net8.0 + net8.0 latest disable enable From fa74b8e76d52fdc8bae0af7de1172f87425a68d9 Mon Sep 17 00:00:00 2001 From: Andrei Sergeev Date: Thu, 23 May 2024 23:21:03 +0400 Subject: [PATCH 5/8] Add UnitJsonConverter --- src/core-unit/Unit/Unit/Unit.cs | 5 ++++- .../UnitJsonConverter/UnitJsonConverter.cs | 20 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/core-unit/Unit/UnitJsonConverter/UnitJsonConverter.cs diff --git a/src/core-unit/Unit/Unit/Unit.cs b/src/core-unit/Unit/Unit/Unit.cs index 1c659284..dcddb532 100644 --- a/src/core-unit/Unit/Unit/Unit.cs +++ b/src/core-unit/Unit/Unit/Unit.cs @@ -1,5 +1,8 @@ -namespace System; +using System.Text.Json.Serialization; +namespace System; + +[JsonConverter(typeof(UnitJsonConverter))] public readonly partial struct Unit : IEquatable, IComparable, IComparable { } diff --git a/src/core-unit/Unit/UnitJsonConverter/UnitJsonConverter.cs b/src/core-unit/Unit/UnitJsonConverter/UnitJsonConverter.cs new file mode 100644 index 00000000..da7257bb --- /dev/null +++ b/src/core-unit/Unit/UnitJsonConverter/UnitJsonConverter.cs @@ -0,0 +1,20 @@ +using System.Diagnostics; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace System; + +internal sealed class UnitJsonConverter : JsonConverter +{ + public override Unit Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + => + default; + + public override void Write(Utf8JsonWriter writer, Unit value, JsonSerializerOptions options) + { + Debug.Assert(writer is not null); + + writer.WriteStartObject(); + writer.WriteEndObject(); + } +} From 3787d5687f97d6b89e0095e2d2f1aba1064619c8 Mon Sep 17 00:00:00 2001 From: Andrei Sergeev Date: Fri, 24 May 2024 00:18:34 +0400 Subject: [PATCH 6/8] Move NUnit tests to Old --- .github/workflows/dotnet.yml | 14 ++++++++++---- .../IAction/IAction.00.cs | 0 .../IAction/IAction.01.cs | 0 .../IAction/IAction.02.cs | 0 .../IAction/IAction.03.cs | 0 .../IAction/IAction.04.cs | 0 .../IAction/IAction.05.cs | 0 .../IAction/IAction.06.cs | 0 .../IAction/IAction.07.cs | 0 .../IAction/IAction.08.cs | 0 .../IAction/IAction.09.cs | 0 .../IAction/IAction.10.cs | 0 .../IAction/IAction.11.cs | 0 .../IAction/IAction.12.cs | 0 .../IAction/IAction.13.cs | 0 .../IAction/IAction.14.cs | 0 .../IAction/IAction.15.cs | 0 .../IAction/IAction.16.cs | 0 .../IFunc/IFunc.00.cs | 0 .../IFunc/IFunc.01.cs | 0 .../IFunc/IFunc.02.cs | 0 .../IFunc/IFunc.03.cs | 0 .../IFunc/IFunc.04.cs | 0 .../IFunc/IFunc.05.cs | 0 .../IFunc/IFunc.06.cs | 0 .../IFunc/IFunc.07.cs | 0 .../IFunc/IFunc.08.cs | 0 .../IFunc/IFunc.09.cs | 0 .../IFunc/IFunc.10.cs | 0 .../IFunc/IFunc.11.cs | 0 .../IFunc/IFunc.12.cs | 0 .../IFunc/IFunc.13.cs | 0 .../IFunc/IFunc.14.cs | 0 .../IFunc/IFunc.15.cs | 0 .../IFunc/IFunc.16.cs | 0 .../MockFuncFactory/MockActionFactory.cs | 0 .../MockFuncFactory/MockFuncFactory.cs | 0 .../Unit.Tests.Old.csproj} | 2 +- .../InvokeAsFuncAsync.00.cs | 0 .../InvokeAsFuncAsync.01.cs | 0 .../InvokeAsFuncAsync.02.cs | 0 .../InvokeAsFuncAsync.03.cs | 0 .../InvokeAsFuncAsync.04.cs | 0 .../InvokeAsFuncAsync.05.cs | 0 .../InvokeAsFuncAsync.06.cs | 0 .../InvokeAsFuncAsync.07.cs | 0 .../InvokeAsFuncAsync.08.cs | 0 .../InvokeAsFuncAsync.09.cs | 0 .../InvokeAsFuncAsync.10.cs | 0 .../InvokeAsFuncAsync.11.cs | 0 .../InvokeAsFuncAsync.12.cs | 0 .../InvokeAsFuncAsync.13.cs | 0 .../InvokeAsFuncAsync.14.cs | 0 .../InvokeAsFuncAsync.15.cs | 0 .../InvokeAsFuncAsync.16.cs | 0 .../UnitExtensionsInvokeAsyncTests/Tests.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.00.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.01.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.02.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.03.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.04.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.05.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.06.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.07.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.08.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.09.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.10.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.11.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.12.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.13.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.14.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.15.cs | 0 .../UnitExtensionsInvokeTests/InvokeAsFunc.16.cs | 0 .../UnitExtensionsInvokeTests/Tests.cs | 0 .../InvokeAsFuncValueAsync.00.cs | 0 .../InvokeAsFuncValueAsync.01.cs | 0 .../InvokeAsFuncValueAsync.02.cs | 0 .../InvokeAsFuncValueAsync.03.cs | 0 .../InvokeAsFuncValueAsync.04.cs | 0 .../InvokeAsFuncValueAsync.05.cs | 0 .../InvokeAsFuncValueAsync.06.cs | 0 .../InvokeAsFuncValueAsync.07.cs | 0 .../InvokeAsFuncValueAsync.08.cs | 0 .../InvokeAsFuncValueAsync.09.cs | 0 .../InvokeAsFuncValueAsync.10.cs | 0 .../InvokeAsFuncValueAsync.11.cs | 0 .../InvokeAsFuncValueAsync.12.cs | 0 .../InvokeAsFuncValueAsync.13.cs | 0 .../InvokeAsFuncValueAsync.14.cs | 0 .../InvokeAsFuncValueAsync.15.cs | 0 .../InvokeAsFuncValueAsync.16.cs | 0 .../UnitExtensionsInvokeValueAsyncTests/Tests.cs | 0 .../UnitExtensionsTests.ToUnit.cs | 0 .../UnitExtensionsTests/UnitExtensionsTests.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.00.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.01.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.02.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.03.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.04.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.05.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.06.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.07.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.08.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.09.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.10.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.11.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.12.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.13.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.14.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.15.cs | 0 .../UnitInvokeAsyncTests/InvokeAsync.16.cs | 0 .../UnitInvokeAsyncTests/Tests.cs | 0 .../UnitInvokeTests/Invoke.00.cs | 0 .../UnitInvokeTests/Invoke.01.cs | 0 .../UnitInvokeTests/Invoke.02.cs | 0 .../UnitInvokeTests/Invoke.03.cs | 0 .../UnitInvokeTests/Invoke.04.cs | 0 .../UnitInvokeTests/Invoke.05.cs | 0 .../UnitInvokeTests/Invoke.06.cs | 0 .../UnitInvokeTests/Invoke.07.cs | 0 .../UnitInvokeTests/Invoke.08.cs | 0 .../UnitInvokeTests/Invoke.09.cs | 0 .../UnitInvokeTests/Invoke.10.cs | 0 .../UnitInvokeTests/Invoke.11.cs | 0 .../UnitInvokeTests/Invoke.12.cs | 0 .../UnitInvokeTests/Invoke.13.cs | 0 .../UnitInvokeTests/Invoke.14.cs | 0 .../UnitInvokeTests/Invoke.15.cs | 0 .../UnitInvokeTests/Invoke.16.cs | 0 .../UnitInvokeTests/Tests.cs | 0 .../InvokeValueAsync.00.cs | 0 .../InvokeValueAsync.01.cs | 0 .../InvokeValueAsync.02.cs | 0 .../InvokeValueAsync.03.cs | 0 .../InvokeValueAsync.04.cs | 0 .../InvokeValueAsync.05.cs | 0 .../InvokeValueAsync.06.cs | 0 .../InvokeValueAsync.07.cs | 0 .../InvokeValueAsync.08.cs | 0 .../InvokeValueAsync.09.cs | 0 .../InvokeValueAsync.10.cs | 0 .../InvokeValueAsync.11.cs | 0 .../InvokeValueAsync.12.cs | 0 .../InvokeValueAsync.13.cs | 0 .../InvokeValueAsync.14.cs | 0 .../InvokeValueAsync.15.cs | 0 .../InvokeValueAsync.16.cs | 0 .../UnitInvokeValueAsyncTests/Tests.cs | 0 .../UnitTests/UnitTests.Comparison.cs | 0 .../UnitTests/UnitTests.Equality.cs | 0 .../UnitTests/UnitTests.Factory.From.cs | 0 .../UnitTests/UnitTests.Factory.cs | 0 .../UnitTests/UnitTests.ToString.cs | 0 .../UnitTests/UnitTests.cs | 0 154 files changed, 11 insertions(+), 5 deletions(-) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.00.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.01.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.02.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.03.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.04.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.05.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.06.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.07.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.08.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.09.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.10.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.11.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.12.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.13.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.14.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.15.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IAction/IAction.16.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.00.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.01.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.02.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.03.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.04.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.05.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.06.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.07.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.08.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.09.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.10.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.11.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.12.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.13.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.14.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.15.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/IFunc/IFunc.16.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/MockFuncFactory/MockActionFactory.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/MockFuncFactory/MockFuncFactory.cs (100%) rename src/core-unit/{Unit.Tests/Unit.Tests.csproj => Unit.Tests.Old/Unit.Tests.Old.csproj} (95%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.00.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.01.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.02.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.03.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.04.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.05.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.06.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.07.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.08.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.09.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.10.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.11.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.12.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.13.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.14.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.15.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.16.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeAsyncTests/Tests.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.00.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.01.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.02.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.03.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.04.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.05.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.06.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.07.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.08.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.09.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.10.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.11.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.12.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.13.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.14.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.15.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/InvokeAsFunc.16.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeTests/Tests.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.00.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.01.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.02.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.03.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.04.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.05.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.06.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.07.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.08.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.09.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.10.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.11.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.12.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.13.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.14.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.15.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.16.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsInvokeValueAsyncTests/Tests.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsTests/UnitExtensionsTests.ToUnit.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitExtensionsTests/UnitExtensionsTests.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.00.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.01.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.02.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.03.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.04.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.05.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.06.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.07.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.08.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.09.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.10.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.11.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.12.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.13.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.14.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.15.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/InvokeAsync.16.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeAsyncTests/Tests.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.00.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.01.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.02.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.03.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.04.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.05.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.06.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.07.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.08.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.09.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.10.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.11.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.12.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.13.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.14.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.15.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Invoke.16.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeTests/Tests.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.00.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.01.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.02.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.03.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.04.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.05.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.06.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.07.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.08.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.09.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.10.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.11.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.12.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.13.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.14.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.15.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/InvokeValueAsync.16.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitInvokeValueAsyncTests/Tests.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitTests/UnitTests.Comparison.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitTests/UnitTests.Equality.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitTests/UnitTests.Factory.From.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitTests/UnitTests.Factory.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitTests/UnitTests.ToString.cs (100%) rename src/core-unit/{Unit.Tests => Unit.Tests.Old}/UnitTests/UnitTests.cs (100%) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 65a962b3..2bc6a5a8 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -43,11 +43,17 @@ jobs: - name: Pack Unit run: dotnet pack ./src/*/*/Unit.csproj --no-restore -o ~/nuget -c Release - - name: Restore Unit.Tests - run: dotnet restore ./src/*/*/Unit.Tests.csproj + - name: Restore Unit.Tests.Old + run: dotnet restore ./src/*/*/Unit.Tests.Old.csproj - - name: Test Unit.Tests - run: dotnet test ./src/*/*/Unit.Tests.csproj --no-restore -c Release + - name: Test Unit.Tests.Old + run: dotnet test ./src/*/*/Unit.Tests.Old.csproj --no-restore -c Release + +# - name: Restore Unit.Tests +# run: dotnet restore ./src/*/*/Unit.Tests.csproj + +# - name: Test Unit.Tests +# run: dotnet test ./src/*/*/Unit.Tests.csproj --no-restore -c Release # Push diff --git a/src/core-unit/Unit.Tests/IAction/IAction.00.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.00.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.00.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.00.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.01.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.01.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.01.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.01.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.02.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.02.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.02.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.02.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.03.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.03.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.03.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.03.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.04.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.04.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.04.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.04.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.05.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.05.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.05.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.05.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.06.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.06.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.06.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.06.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.07.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.07.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.07.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.07.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.08.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.08.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.08.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.08.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.09.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.09.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.09.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.09.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.10.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.10.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.10.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.10.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.11.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.11.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.11.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.11.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.12.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.12.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.12.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.12.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.13.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.13.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.13.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.13.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.14.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.14.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.14.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.14.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.15.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.15.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.15.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.15.cs diff --git a/src/core-unit/Unit.Tests/IAction/IAction.16.cs b/src/core-unit/Unit.Tests.Old/IAction/IAction.16.cs similarity index 100% rename from src/core-unit/Unit.Tests/IAction/IAction.16.cs rename to src/core-unit/Unit.Tests.Old/IAction/IAction.16.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.00.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.00.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.00.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.00.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.01.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.01.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.01.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.01.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.02.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.02.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.02.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.02.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.03.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.03.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.03.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.03.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.04.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.04.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.04.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.04.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.05.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.05.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.05.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.05.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.06.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.06.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.06.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.06.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.07.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.07.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.07.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.07.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.08.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.08.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.08.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.08.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.09.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.09.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.09.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.09.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.10.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.10.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.10.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.10.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.11.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.11.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.11.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.11.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.12.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.12.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.12.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.12.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.13.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.13.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.13.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.13.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.14.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.14.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.14.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.14.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.15.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.15.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.15.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.15.cs diff --git a/src/core-unit/Unit.Tests/IFunc/IFunc.16.cs b/src/core-unit/Unit.Tests.Old/IFunc/IFunc.16.cs similarity index 100% rename from src/core-unit/Unit.Tests/IFunc/IFunc.16.cs rename to src/core-unit/Unit.Tests.Old/IFunc/IFunc.16.cs diff --git a/src/core-unit/Unit.Tests/MockFuncFactory/MockActionFactory.cs b/src/core-unit/Unit.Tests.Old/MockFuncFactory/MockActionFactory.cs similarity index 100% rename from src/core-unit/Unit.Tests/MockFuncFactory/MockActionFactory.cs rename to src/core-unit/Unit.Tests.Old/MockFuncFactory/MockActionFactory.cs diff --git a/src/core-unit/Unit.Tests/MockFuncFactory/MockFuncFactory.cs b/src/core-unit/Unit.Tests.Old/MockFuncFactory/MockFuncFactory.cs similarity index 100% rename from src/core-unit/Unit.Tests/MockFuncFactory/MockFuncFactory.cs rename to src/core-unit/Unit.Tests.Old/MockFuncFactory/MockFuncFactory.cs diff --git a/src/core-unit/Unit.Tests/Unit.Tests.csproj b/src/core-unit/Unit.Tests.Old/Unit.Tests.Old.csproj similarity index 95% rename from src/core-unit/Unit.Tests/Unit.Tests.csproj rename to src/core-unit/Unit.Tests.Old/Unit.Tests.Old.csproj index 7dd41dc8..64b75612 100644 --- a/src/core-unit/Unit.Tests/Unit.Tests.csproj +++ b/src/core-unit/Unit.Tests.Old/Unit.Tests.Old.csproj @@ -12,7 +12,7 @@ Andrei Sergeev, Pavel Moskovoy Copyright © 2020-2024 Andrei Sergeev, Pavel Moskovoy PrimeFuncPack.Core.Tests - PrimeFuncPack.Core.Unit.Tests + PrimeFuncPack.Core.Unit.Tests.Old diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.00.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.00.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.00.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.00.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.01.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.01.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.01.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.01.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.02.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.02.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.02.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.02.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.03.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.03.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.03.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.03.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.04.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.04.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.04.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.04.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.05.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.05.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.05.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.05.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.06.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.06.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.06.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.06.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.07.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.07.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.07.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.07.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.08.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.08.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.08.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.08.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.09.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.09.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.09.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.09.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.10.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.10.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.10.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.10.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.11.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.11.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.11.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.11.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.12.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.12.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.12.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.12.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.13.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.13.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.13.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.13.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.14.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.14.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.14.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.14.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.15.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.15.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.15.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.15.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.16.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.16.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.16.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.16.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Tests.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/Tests.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeAsyncTests/Tests.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/Tests.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.00.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.00.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.00.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.00.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.01.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.01.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.01.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.01.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.02.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.02.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.02.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.02.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.03.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.03.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.03.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.03.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.04.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.04.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.04.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.04.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.05.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.05.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.05.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.05.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.06.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.06.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.06.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.06.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.07.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.07.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.07.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.07.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.08.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.08.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.08.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.08.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.09.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.09.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.09.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.09.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.10.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.10.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.10.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.10.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.11.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.11.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.11.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.11.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.12.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.12.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.12.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.12.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.13.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.13.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.13.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.13.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.14.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.14.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.14.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.14.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.15.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.15.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.15.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.15.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.16.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.16.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/InvokeAsFunc.16.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.16.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Tests.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/Tests.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeTests/Tests.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/Tests.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.00.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.00.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.00.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.00.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.01.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.01.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.01.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.01.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.02.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.02.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.02.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.02.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.03.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.03.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.03.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.03.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.04.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.04.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.04.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.04.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.05.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.05.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.05.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.05.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.06.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.06.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.06.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.06.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.07.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.07.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.07.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.07.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.08.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.08.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.08.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.08.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.09.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.09.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.09.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.09.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.10.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.10.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.10.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.10.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.11.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.11.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.11.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.11.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.12.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.12.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.12.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.12.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.13.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.13.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.13.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.13.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.14.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.14.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.14.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.14.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.15.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.15.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.15.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.15.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.16.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.16.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.16.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.16.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Tests.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/Tests.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsInvokeValueAsyncTests/Tests.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/Tests.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsTests/UnitExtensionsTests.ToUnit.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsTests/UnitExtensionsTests.ToUnit.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsTests/UnitExtensionsTests.ToUnit.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsTests/UnitExtensionsTests.ToUnit.cs diff --git a/src/core-unit/Unit.Tests/UnitExtensionsTests/UnitExtensionsTests.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsTests/UnitExtensionsTests.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitExtensionsTests/UnitExtensionsTests.cs rename to src/core-unit/Unit.Tests.Old/UnitExtensionsTests/UnitExtensionsTests.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.00.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.00.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.00.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.00.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.01.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.01.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.01.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.01.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.02.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.02.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.02.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.02.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.03.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.03.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.03.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.03.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.04.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.04.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.04.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.04.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.05.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.05.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.05.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.05.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.06.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.06.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.06.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.06.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.07.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.07.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.07.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.07.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.08.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.08.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.08.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.08.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.09.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.09.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.09.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.09.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.10.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.10.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.10.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.10.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.11.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.11.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.11.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.11.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.12.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.12.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.12.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.12.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.13.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.13.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.13.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.13.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.14.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.14.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.14.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.14.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.15.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.15.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.15.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.15.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.16.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.16.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/InvokeAsync.16.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.16.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeAsyncTests/Tests.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/Tests.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeAsyncTests/Tests.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/Tests.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.00.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.00.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.00.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.00.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.01.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.01.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.01.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.01.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.02.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.02.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.02.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.02.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.03.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.03.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.03.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.03.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.04.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.04.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.04.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.04.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.05.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.05.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.05.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.05.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.06.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.06.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.06.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.06.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.07.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.07.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.07.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.07.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.08.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.08.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.08.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.08.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.09.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.09.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.09.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.09.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.10.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.10.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.10.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.10.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.11.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.11.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.11.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.11.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.12.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.12.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.12.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.12.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.13.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.13.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.13.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.13.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.14.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.14.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.14.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.14.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.15.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.15.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.15.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.15.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.16.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.16.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Invoke.16.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.16.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeTests/Tests.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Tests.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeTests/Tests.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeTests/Tests.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.00.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.00.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.00.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.00.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.01.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.01.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.01.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.01.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.02.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.02.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.02.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.02.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.03.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.03.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.03.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.03.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.04.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.04.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.04.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.04.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.05.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.05.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.05.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.05.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.06.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.06.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.06.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.06.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.07.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.07.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.07.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.07.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.08.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.08.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.08.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.08.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.09.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.09.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.09.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.09.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.10.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.10.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.10.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.10.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.11.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.11.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.11.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.11.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.12.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.12.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.12.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.12.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.13.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.13.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.13.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.13.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.14.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.14.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.14.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.14.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.15.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.15.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.15.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.15.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.16.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.16.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/InvokeValueAsync.16.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.16.cs diff --git a/src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/Tests.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/Tests.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitInvokeValueAsyncTests/Tests.cs rename to src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/Tests.cs diff --git a/src/core-unit/Unit.Tests/UnitTests/UnitTests.Comparison.cs b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Comparison.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitTests/UnitTests.Comparison.cs rename to src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Comparison.cs diff --git a/src/core-unit/Unit.Tests/UnitTests/UnitTests.Equality.cs b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Equality.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitTests/UnitTests.Equality.cs rename to src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Equality.cs diff --git a/src/core-unit/Unit.Tests/UnitTests/UnitTests.Factory.From.cs b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Factory.From.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitTests/UnitTests.Factory.From.cs rename to src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Factory.From.cs diff --git a/src/core-unit/Unit.Tests/UnitTests/UnitTests.Factory.cs b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Factory.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitTests/UnitTests.Factory.cs rename to src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Factory.cs diff --git a/src/core-unit/Unit.Tests/UnitTests/UnitTests.ToString.cs b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.ToString.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitTests/UnitTests.ToString.cs rename to src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.ToString.cs diff --git a/src/core-unit/Unit.Tests/UnitTests/UnitTests.cs b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.cs similarity index 100% rename from src/core-unit/Unit.Tests/UnitTests/UnitTests.cs rename to src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.cs From 1943f97cd3f46b405fd1fa0e3e59fed1b506a2a1 Mon Sep 17 00:00:00 2001 From: Andrei Sergeev Date: Mon, 27 May 2024 22:18:34 +0400 Subject: [PATCH 7/8] Implement Unit deserialization; Add the tests --- .github/workflows/dotnet.yml | 8 +-- src/core-unit/Unit.Tests.Old/GlobalUsings.cs | 1 + .../Unit.Tests.Old/Unit.Tests.Old.csproj | 2 +- src/core-unit/Unit.Tests/GlobalUsings.cs | 1 + src/core-unit/Unit.Tests/Unit.Tests.csproj | 39 +++++++++++ ...rializationTests.DeserializeArrayToUnit.cs | 51 ++++++++++++++ ...onTests.DeserializeNonEmptyObjectToUnit.cs | 70 +++++++++++++++++++ ...erializationTests.DeserializeNullToUnit.cs | 24 +++++++ ...ationTests.DeserializeSimpleValueToUnit.cs | 65 +++++++++++++++++ .../UnitSerializationTests.DeserializeUnit.cs | 24 +++++++ .../UnitSerializationTests.SerializeUnit.cs | 26 +++++++ .../UnitSerializationTests.cs | 20 ++++++ .../UnitJsonConverter/UnitJsonConverter.cs | 27 ++++++- 13 files changed, 351 insertions(+), 7 deletions(-) create mode 100644 src/core-unit/Unit.Tests.Old/GlobalUsings.cs create mode 100644 src/core-unit/Unit.Tests/GlobalUsings.cs create mode 100644 src/core-unit/Unit.Tests/Unit.Tests.csproj create mode 100644 src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeArrayToUnit.cs create mode 100644 src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeNonEmptyObjectToUnit.cs create mode 100644 src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeNullToUnit.cs create mode 100644 src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeSimpleValueToUnit.cs create mode 100644 src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeUnit.cs create mode 100644 src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.SerializeUnit.cs create mode 100644 src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.cs diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 2bc6a5a8..7da62659 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -49,11 +49,11 @@ jobs: - name: Test Unit.Tests.Old run: dotnet test ./src/*/*/Unit.Tests.Old.csproj --no-restore -c Release -# - name: Restore Unit.Tests -# run: dotnet restore ./src/*/*/Unit.Tests.csproj + - name: Restore Unit.Tests + run: dotnet restore ./src/*/*/Unit.Tests.csproj -# - name: Test Unit.Tests -# run: dotnet test ./src/*/*/Unit.Tests.csproj --no-restore -c Release + - name: Test Unit.Tests + run: dotnet test ./src/*/*/Unit.Tests.csproj --no-restore -c Release # Push diff --git a/src/core-unit/Unit.Tests.Old/GlobalUsings.cs b/src/core-unit/Unit.Tests.Old/GlobalUsings.cs new file mode 100644 index 00000000..32445676 --- /dev/null +++ b/src/core-unit/Unit.Tests.Old/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; diff --git a/src/core-unit/Unit.Tests.Old/Unit.Tests.Old.csproj b/src/core-unit/Unit.Tests.Old/Unit.Tests.Old.csproj index 64b75612..15eca5de 100644 --- a/src/core-unit/Unit.Tests.Old/Unit.Tests.Old.csproj +++ b/src/core-unit/Unit.Tests.Old/Unit.Tests.Old.csproj @@ -20,7 +20,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/src/core-unit/Unit.Tests/GlobalUsings.cs b/src/core-unit/Unit.Tests/GlobalUsings.cs new file mode 100644 index 00000000..c802f448 --- /dev/null +++ b/src/core-unit/Unit.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using Xunit; diff --git a/src/core-unit/Unit.Tests/Unit.Tests.csproj b/src/core-unit/Unit.Tests/Unit.Tests.csproj new file mode 100644 index 00000000..eb4c6c0a --- /dev/null +++ b/src/core-unit/Unit.Tests/Unit.Tests.csproj @@ -0,0 +1,39 @@ + + + + net8.0 + latest + disable + enable + true + true + false + true + Andrei Sergeev, Pavel Moskovoy + Copyright © 2020-2024 Andrei Sergeev, Pavel Moskovoy + PrimeFuncPack.Core.Tests + PrimeFuncPack.Core.Unit.Tests + + + + $(NoWarn);xUnit1044 + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeArrayToUnit.cs b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeArrayToUnit.cs new file mode 100644 index 00000000..b3a4803d --- /dev/null +++ b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeArrayToUnit.cs @@ -0,0 +1,51 @@ +using System; +using System.Text.Json; +using System.Text.Json.Nodes; + +namespace PrimeFuncPack.Core.Tests; + +partial class UnitSerializationTests +{ + [Theory] + [MemberData(nameof(DeserializeArrayToUnit_ExpectNoException_Cases))] + public static void DeserializeArrayToUnitFromString_ExpectNoException( + JsonArray source, + JsonSerializerOptions? options) + { + var sourceString = JsonSerializer.Serialize(source); + _ = JsonSerializer.Deserialize(sourceString, options); + } + + [Theory] + [MemberData(nameof(DeserializeArrayToUnit_ExpectNoException_Cases))] + public static void DeserializeArrayToUnitFromObject_ExpectNoException( + JsonArray source, + JsonSerializerOptions? options) + { + _ = JsonSerializer.Deserialize(source, options); + } + + public static TheoryData DeserializeArrayToUnit_ExpectNoException_Cases + { + get + { + var arrays = new JsonArray[] + { + [], + new(new JsonArray(null, true, false, -1, 0, 1.1m, 1.2, "2")) + }; + + var result = new TheoryData(); + + foreach (var array in arrays) + { + foreach (var options in BuildJsonSerializerOptionsCollection()) + { + result.Add(array, options); + } + } + + return result; + } + } +} diff --git a/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeNonEmptyObjectToUnit.cs b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeNonEmptyObjectToUnit.cs new file mode 100644 index 00000000..bd16e33c --- /dev/null +++ b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeNonEmptyObjectToUnit.cs @@ -0,0 +1,70 @@ +using System; +using System.Text.Json; +using System.Text.Json.Nodes; + +namespace PrimeFuncPack.Core.Tests; + +partial class UnitSerializationTests +{ + [Theory] + [MemberData(nameof(DeserializeNonEmptyObjectToUnit_ExpectNoException_Cases))] + public static void DeserializeNonEmptyObjectToUnitFromString_ExpectNoException( + JsonObject source, + JsonSerializerOptions? options) + { + var sourceString = JsonSerializer.Serialize(source); + _ = JsonSerializer.Deserialize(sourceString, options); + } + + [Theory] + [MemberData(nameof(DeserializeNonEmptyObjectToUnit_ExpectNoException_Cases))] + public static void DeserializeNonEmptyObjectToUnitFromObject_ExpectNoException( + JsonObject source, + JsonSerializerOptions? options) + { + _ = JsonSerializer.Deserialize(source, options); + } + + public static TheoryData DeserializeNonEmptyObjectToUnit_ExpectNoException_Cases + { + get + { + var objects = new JsonObject[] + { + new() + { + ["id"] = "0AFB2897-BA58-4E10-A083-4C33341B6238" + }, + new() + { + ["id"] = "0AFB2897-BA58-4E10-A083-4C33341B6238", + ["body"] = new JsonObject + { + ["foo"] = 1, + ["bar"] = "2", + ["baz"] = new JsonArray(null, true, 1, "2"), + }, + ["qux"] = new JsonArray(false, -1, 0, 1.1m, 1.2, "3"), + ["quux"] = new JsonArray(), + ["corge"] = -1.1m, + ["grault"] = -1.2, + ["garply"] = true, + ["waldo"] = false, + ["fred"] = null, + } + }; + + var result = new TheoryData(); + + foreach (var obj in objects) + { + foreach (var options in BuildJsonSerializerOptionsCollection()) + { + result.Add(obj, options); + } + } + + return result; + } + } +} diff --git a/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeNullToUnit.cs b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeNullToUnit.cs new file mode 100644 index 00000000..1efc4a2d --- /dev/null +++ b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeNullToUnit.cs @@ -0,0 +1,24 @@ +using System; +using System.Text.Json; +using System.Text.Json.Nodes; + +namespace PrimeFuncPack.Core.Tests; + +partial class UnitSerializationTests +{ + [Theory] + [MemberData(nameof(JsonSerializerOptionsCases))] + public static void DeserializeNullToUnitFromString_ExpectNoException(JsonSerializerOptions? options) + { + var source = JsonSerializer.Serialize(null); + _ = JsonSerializer.Deserialize(source, options); + } + + [Theory] + [MemberData(nameof(JsonSerializerOptionsCases))] + public static void DeserializeNullToUnitFromNode_ExpectNoException(JsonSerializerOptions? options) + { + JsonNode? source = null; + _ = JsonSerializer.Deserialize(source, options); + } +} diff --git a/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeSimpleValueToUnit.cs b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeSimpleValueToUnit.cs new file mode 100644 index 00000000..7cb8fd94 --- /dev/null +++ b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeSimpleValueToUnit.cs @@ -0,0 +1,65 @@ +using System; +using System.Text.Json; +using System.Text.Json.Nodes; + +namespace PrimeFuncPack.Core.Tests; + +partial class UnitSerializationTests +{ + [Theory] + [MemberData(nameof(DeserializeSimpleValueToUnit_ExpectNoException_Cases))] + public static void DeserializeSimpleValueToUnitFromString_ExpectNoException( + JsonNode source, + JsonSerializerOptions? options) + { + var sourceString = JsonSerializer.Serialize(source); + _ = JsonSerializer.Deserialize(sourceString, options); + } + + [Theory] + [MemberData(nameof(DeserializeSimpleValueToUnit_ExpectNoException_Cases))] + public static void DeserializeSimpleValueToUnitFromObject_ExpectNoException( + JsonNode source, + JsonSerializerOptions? options) + { + _ = JsonSerializer.Deserialize(source, options); + } + + public static TheoryData DeserializeSimpleValueToUnit_ExpectNoException_Cases + { + get + { + var values = new JsonNode[] + { + true, + false, + + int.MinValue, + -1, + 0, + 1.1m, + 1.2, + int.MaxValue, + + double.MinValue, + double.MaxValue, + + "", + "1", + "0AFB2897-BA58-4E10-A083-4C33341B6238" + }; + + var result = new TheoryData(); + + foreach (var value in values) + { + foreach (var options in BuildJsonSerializerOptionsCollection()) + { + result.Add(value, options); + } + } + + return result; + } + } +} diff --git a/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeUnit.cs b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeUnit.cs new file mode 100644 index 00000000..68fc55d1 --- /dev/null +++ b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.DeserializeUnit.cs @@ -0,0 +1,24 @@ +using System; +using System.Text.Json; +using System.Text.Json.Nodes; + +namespace PrimeFuncPack.Core.Tests; + +partial class UnitSerializationTests +{ + [Theory] + [MemberData(nameof(JsonSerializerOptionsCases))] + public static void DeserializeUnitFromString_ExpectNoException(JsonSerializerOptions? options) + { + var source = JsonSerializer.Serialize(new JsonObject()); // default options expected + _ = JsonSerializer.Deserialize(source, options); + } + + [Theory] + [MemberData(nameof(JsonSerializerOptionsCases))] + public static void DeserializeUnitFromNode_ExpectNoException(JsonSerializerOptions? options) + { + var source = new JsonObject(); + _ = JsonSerializer.Deserialize(source, options); + } +} diff --git a/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.SerializeUnit.cs b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.SerializeUnit.cs new file mode 100644 index 00000000..c4d8b9a1 --- /dev/null +++ b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.SerializeUnit.cs @@ -0,0 +1,26 @@ +using System; +using System.Text.Json; +using System.Text.Json.Nodes; + +namespace PrimeFuncPack.Core.Tests; + +partial class UnitSerializationTests +{ + [Theory] + [MemberData(nameof(JsonSerializerOptionsCases))] + public static void SerializeUnitToString_ExpectEmptyJsonObject(JsonSerializerOptions? options) + { + var actual = JsonSerializer.Serialize(default(Unit), options); + var expected = JsonSerializer.Serialize(new JsonObject()); // default options expected + Assert.Equal(expected, actual); + } + + [Theory] + [MemberData(nameof(JsonSerializerOptionsCases))] + public static void SerializeUnitToNode_ExpectEmptyJsonObject(JsonSerializerOptions? options) + { + var actual = JsonSerializer.SerializeToNode(default(Unit), options); + var expected = new JsonObject(); + Assert.Equal(expected, actual); + } +} diff --git a/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.cs b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.cs new file mode 100644 index 00000000..f31b6cbc --- /dev/null +++ b/src/core-unit/Unit.Tests/UnitSerializationTests/UnitSerializationTests.cs @@ -0,0 +1,20 @@ +using System.Collections.Generic; +using System.Linq; +using System.Text.Json; + +namespace PrimeFuncPack.Core.Tests; + +public static partial class UnitSerializationTests +{ + public static TheoryData JsonSerializerOptionsCases + => + new(BuildJsonSerializerOptionsCollection().ToArray()); + + private static IEnumerable BuildJsonSerializerOptionsCollection() + { + yield return null; + yield return JsonSerializerOptions.Default; + yield return new(JsonSerializerDefaults.General); + yield return new(JsonSerializerDefaults.Web); + } +} diff --git a/src/core-unit/Unit/UnitJsonConverter/UnitJsonConverter.cs b/src/core-unit/Unit/UnitJsonConverter/UnitJsonConverter.cs index da7257bb..459bd865 100644 --- a/src/core-unit/Unit/UnitJsonConverter/UnitJsonConverter.cs +++ b/src/core-unit/Unit/UnitJsonConverter/UnitJsonConverter.cs @@ -7,8 +7,31 @@ namespace System; internal sealed class UnitJsonConverter : JsonConverter { public override Unit Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - => - default; + { + var tokenType = reader.TokenType; + Debug.Assert(tokenType is not JsonTokenType.None); + + switch (tokenType) + { + case JsonTokenType.StartObject: + case JsonTokenType.StartArray: + reader.Skip(); + Debug.Assert( + tokenType is JsonTokenType.StartObject && reader.TokenType is JsonTokenType.EndObject || + tokenType is JsonTokenType.StartArray && reader.TokenType is JsonTokenType.EndArray); + return default; + + case JsonTokenType.String: + case JsonTokenType.Number: + case JsonTokenType.True: + case JsonTokenType.False: + case JsonTokenType.Null: + return default; + + default: + throw new JsonException($"An unexpected JSON token type ({tokenType})."); + }; + } public override void Write(Utf8JsonWriter writer, Unit value, JsonSerializerOptions options) { From 482cbf81fe5a0eb3e8077b1731d10530deb59ad9 Mon Sep 17 00:00:00 2001 From: Andrei Sergeev Date: Mon, 27 May 2024 22:27:29 +0400 Subject: [PATCH 8/8] Unit tests old: Use global usings for NUnit --- .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.00.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.01.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.02.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.03.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.04.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.05.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.06.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.07.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.08.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.09.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.10.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.11.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.12.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.13.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.14.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.15.cs | 1 - .../UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.16.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.00.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.01.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.02.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.03.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.04.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.05.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.06.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.07.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.08.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.09.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.10.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.11.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.12.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.13.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.14.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.15.cs | 1 - .../UnitExtensionsInvokeTests/InvokeAsFunc.16.cs | 1 - .../InvokeAsFuncValueAsync.00.cs | 1 - .../InvokeAsFuncValueAsync.01.cs | 1 - .../InvokeAsFuncValueAsync.02.cs | 1 - .../InvokeAsFuncValueAsync.03.cs | 1 - .../InvokeAsFuncValueAsync.04.cs | 1 - .../InvokeAsFuncValueAsync.05.cs | 1 - .../InvokeAsFuncValueAsync.06.cs | 1 - .../InvokeAsFuncValueAsync.07.cs | 1 - .../InvokeAsFuncValueAsync.08.cs | 1 - .../InvokeAsFuncValueAsync.09.cs | 1 - .../InvokeAsFuncValueAsync.10.cs | 1 - .../InvokeAsFuncValueAsync.11.cs | 1 - .../InvokeAsFuncValueAsync.12.cs | 1 - .../InvokeAsFuncValueAsync.13.cs | 1 - .../InvokeAsFuncValueAsync.14.cs | 1 - .../InvokeAsFuncValueAsync.15.cs | 1 - .../InvokeAsFuncValueAsync.16.cs | 1 - .../UnitExtensionsTests/UnitExtensionsTests.ToUnit.cs | 3 +-- .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.00.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.01.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.02.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.03.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.04.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.05.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.06.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.07.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.08.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.09.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.10.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.11.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.12.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.13.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.14.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.15.cs | 1 - .../Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.16.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.00.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.01.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.02.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.03.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.04.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.05.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.06.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.07.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.08.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.09.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.10.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.11.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.12.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.13.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.14.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.15.cs | 1 - src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.16.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.00.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.01.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.02.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.03.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.04.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.05.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.06.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.07.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.08.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.09.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.10.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.11.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.12.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.13.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.14.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.15.cs | 1 - .../UnitInvokeValueAsyncTests/InvokeValueAsync.16.cs | 1 - src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Comparison.cs | 3 +-- src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Equality.cs | 3 +-- .../Unit.Tests.Old/UnitTests/UnitTests.Factory.From.cs | 3 +-- src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Factory.cs | 3 +-- src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.ToString.cs | 3 +-- 108 files changed, 6 insertions(+), 114 deletions(-) diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.00.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.00.cs index f590b4a6..35d455a8 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.00.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.00.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.01.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.01.cs index bb933028..11bfc469 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.01.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.01.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.02.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.02.cs index 92e33c61..cdaf3ac6 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.02.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.02.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.03.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.03.cs index dfa1dfc1..efebe304 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.03.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.03.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.04.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.04.cs index 844243b2..17976a95 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.04.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.04.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.05.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.05.cs index 333aaf48..ec206776 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.05.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.05.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.06.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.06.cs index 2561a23c..90bb16e9 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.06.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.06.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.07.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.07.cs index f3f88882..7612d7b8 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.07.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.07.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.08.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.08.cs index 6217a351..708a4648 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.08.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.08.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.09.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.09.cs index 9f16aa4d..73335fc3 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.09.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.09.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.10.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.10.cs index 28e6b271..5d3f2c02 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.10.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.10.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.11.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.11.cs index c6d925e3..9e020f8d 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.11.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.11.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.12.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.12.cs index cd7732c9..2ffd89e3 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.12.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.12.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.13.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.13.cs index 776ac0c0..b6d87114 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.13.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.13.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.14.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.14.cs index 214503f1..cb43e540 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.14.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.14.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.15.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.15.cs index 4d89b09e..f9e814be 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.15.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.15.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.16.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.16.cs index 6f1d9a30..fbbc4996 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.16.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeAsyncTests/InvokeAsFuncAsync.16.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.00.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.00.cs index e5787457..8872e6e2 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.00.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.00.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using System; namespace PrimeFuncPack.Core.Tests; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.01.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.01.cs index f3402cc7..32f80fe5 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.01.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.01.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.02.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.02.cs index 795d4c18..7ae7241f 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.02.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.02.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.03.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.03.cs index fae7f8bd..9006ffe5 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.03.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.03.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.04.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.04.cs index 40fdd684..509df661 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.04.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.04.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.05.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.05.cs index 988ffb51..160bbb6c 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.05.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.05.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.06.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.06.cs index df234fe2..11a280b3 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.06.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.06.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.07.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.07.cs index bed28630..6d831a23 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.07.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.07.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.08.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.08.cs index a3aeaa03..38e1f308 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.08.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.08.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.09.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.09.cs index 7f6a1da4..e1e1d0c2 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.09.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.09.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.10.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.10.cs index 6b87b585..70577616 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.10.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.10.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.11.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.11.cs index 3a590e0c..7cb6d6ca 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.11.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.11.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.12.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.12.cs index cf2582e7..96b2a750 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.12.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.12.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.13.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.13.cs index ce3aa59a..48db3c4d 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.13.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.13.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.14.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.14.cs index 64b0fe02..2f384d34 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.14.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.14.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.15.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.15.cs index 2d446d51..3542cfc6 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.15.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.15.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.16.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.16.cs index 1e62827f..64b0d65d 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.16.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeTests/InvokeAsFunc.16.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.00.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.00.cs index 4ef29790..1a6c8e29 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.00.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.00.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.01.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.01.cs index 2fe6a692..c44c2794 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.01.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.01.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.02.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.02.cs index 677de09c..b36edad0 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.02.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.02.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.03.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.03.cs index 19a67ab2..dc9a44e6 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.03.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.03.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.04.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.04.cs index 7f6b2b11..4df06661 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.04.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.04.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.05.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.05.cs index 8b3723e9..48a3494d 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.05.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.05.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.06.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.06.cs index 535bc522..0ca9fe79 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.06.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.06.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.07.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.07.cs index 8fa3a4e6..38817561 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.07.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.07.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.08.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.08.cs index 4075514b..bf611dc3 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.08.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.08.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.09.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.09.cs index dae5fd40..a8fa86da 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.09.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.09.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.10.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.10.cs index 2ef03836..82dbfad4 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.10.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.10.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.11.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.11.cs index ed516086..abc8d6ab 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.11.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.11.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.12.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.12.cs index c7bc90fa..c00f811d 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.12.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.12.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.13.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.13.cs index f12370ad..41c84cea 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.13.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.13.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.14.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.14.cs index 943a950f..7ea49da7 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.14.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.14.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.15.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.15.cs index 00518dc1..c949c76d 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.15.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.15.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.16.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.16.cs index 68d43139..54135bd7 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.16.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsInvokeValueAsyncTests/InvokeAsFuncValueAsync.16.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitExtensionsTests/UnitExtensionsTests.ToUnit.cs b/src/core-unit/Unit.Tests.Old/UnitExtensionsTests/UnitExtensionsTests.ToUnit.cs index d948ad73..f60119dd 100644 --- a/src/core-unit/Unit.Tests.Old/UnitExtensionsTests/UnitExtensionsTests.ToUnit.cs +++ b/src/core-unit/Unit.Tests.Old/UnitExtensionsTests/UnitExtensionsTests.ToUnit.cs @@ -1,5 +1,4 @@ -using NUnit.Framework; -using PrimeFuncPack.UnitTest; +using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.00.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.00.cs index b8a1d6d4..6f78d05d 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.00.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.00.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.01.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.01.cs index b2f8f7ce..a35c1db9 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.01.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.01.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.02.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.02.cs index 0b0d1073..bda396e4 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.02.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.02.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.03.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.03.cs index d1204263..b2fe3a8e 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.03.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.03.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.04.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.04.cs index d3b4625d..246a1729 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.04.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.04.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.05.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.05.cs index 89abf45d..87fbb60a 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.05.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.05.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.06.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.06.cs index aca2d66f..7c5368ea 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.06.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.06.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.07.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.07.cs index b06130bf..a57dbd07 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.07.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.07.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.08.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.08.cs index bc17e980..67c5e1e8 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.08.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.08.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.09.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.09.cs index 0224e10e..fd35c368 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.09.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.09.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.10.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.10.cs index c7f51161..536f9596 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.10.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.10.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.11.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.11.cs index 3ccb7e58..551058dd 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.11.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.11.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.12.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.12.cs index 336eb5f3..819cc174 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.12.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.12.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.13.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.13.cs index f386da3d..f8c6db73 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.13.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.13.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.14.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.14.cs index 8c558f27..ae42ae70 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.14.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.14.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.15.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.15.cs index 99a9eeb4..c32b394a 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.15.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.15.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.16.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.16.cs index 1da1622d..c7f7273f 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.16.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeAsyncTests/InvokeAsync.16.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.00.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.00.cs index 1d7f641c..124b5eb5 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.00.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.00.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using System; namespace PrimeFuncPack.Core.Tests; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.01.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.01.cs index c907752c..0ec0f1e6 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.01.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.01.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.02.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.02.cs index 6c83753c..c19a5c89 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.02.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.02.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.03.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.03.cs index f353e135..814d13ee 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.03.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.03.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.04.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.04.cs index e2bd9728..98e33ca2 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.04.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.04.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.05.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.05.cs index 23f048ae..d23b2445 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.05.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.05.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.06.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.06.cs index 99601c19..a512315e 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.06.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.06.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.07.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.07.cs index c3c9ee6c..8497c669 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.07.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.07.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.08.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.08.cs index 0041ffc0..910a5d06 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.08.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.08.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.09.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.09.cs index 69c61ff8..4d765218 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.09.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.09.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.10.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.10.cs index 38cfea05..3c80f0d8 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.10.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.10.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.11.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.11.cs index 13d0bbbb..38c428b6 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.11.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.11.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.12.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.12.cs index 62a69900..80aacb36 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.12.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.12.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.13.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.13.cs index ebf3a2db..891df6c3 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.13.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.13.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.14.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.14.cs index 4db0c429..3e91a40c 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.14.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.14.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.15.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.15.cs index 16d2dc47..d1a73a9b 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.15.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.15.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.16.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.16.cs index 1d7b98fe..8078dde0 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.16.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeTests/Invoke.16.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.00.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.00.cs index 59222e2d..744503e6 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.00.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.00.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.01.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.01.cs index af3a2a8e..5f3ba402 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.01.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.01.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.02.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.02.cs index eb6ce4f9..e2245522 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.02.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.02.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.03.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.03.cs index 96fd2be3..ce1e2441 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.03.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.03.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.04.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.04.cs index 25bf3022..310a6543 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.04.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.04.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.05.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.05.cs index 25ea80e6..fbf7a959 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.05.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.05.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.06.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.06.cs index 79a7b2f2..d90de850 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.06.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.06.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.07.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.07.cs index 4241843e..bb769544 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.07.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.07.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.08.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.08.cs index a6d697fb..9469a998 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.08.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.08.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.09.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.09.cs index 07a89113..1d4e2182 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.09.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.09.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.10.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.10.cs index 0b1cf99e..4d950009 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.10.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.10.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.11.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.11.cs index 33d08abe..8373466e 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.11.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.11.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.12.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.12.cs index 0ba97f89..e7d131e1 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.12.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.12.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.13.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.13.cs index c7b64551..4a749128 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.13.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.13.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.14.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.14.cs index 77701b7a..c43aec1c 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.14.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.14.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.15.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.15.cs index f0315620..eabec6d2 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.15.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.15.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.16.cs b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.16.cs index 03fdba7e..1fda4c4d 100644 --- a/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.16.cs +++ b/src/core-unit/Unit.Tests.Old/UnitInvokeValueAsyncTests/InvokeValueAsync.16.cs @@ -1,5 +1,4 @@ using Moq; -using NUnit.Framework; using PrimeFuncPack.UnitTest; using System; using System.Threading.Tasks; diff --git a/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Comparison.cs b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Comparison.cs index bc63302f..e12b89df 100644 --- a/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Comparison.cs +++ b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Comparison.cs @@ -1,5 +1,4 @@ -using NUnit.Framework; -using System; +using System; using System.Collections.Generic; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Equality.cs b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Equality.cs index d88122d5..a8d143d7 100644 --- a/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Equality.cs +++ b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Equality.cs @@ -1,5 +1,4 @@ -using NUnit.Framework; -using System; +using System; using System.Collections.Generic; using static PrimeFuncPack.UnitTest.TestData; diff --git a/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Factory.From.cs b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Factory.From.cs index 20a41465..045f9f14 100644 --- a/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Factory.From.cs +++ b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Factory.From.cs @@ -1,5 +1,4 @@ -using NUnit.Framework; -using System; +using System; using static PrimeFuncPack.UnitTest.TestData; namespace PrimeFuncPack.Core.Tests; diff --git a/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Factory.cs b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Factory.cs index d8643781..c391dacf 100644 --- a/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Factory.cs +++ b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.Factory.cs @@ -1,5 +1,4 @@ -using NUnit.Framework; -using System; +using System; namespace PrimeFuncPack.Core.Tests; diff --git a/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.ToString.cs b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.ToString.cs index d37987ec..0e3345c4 100644 --- a/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.ToString.cs +++ b/src/core-unit/Unit.Tests.Old/UnitTests/UnitTests.ToString.cs @@ -1,5 +1,4 @@ -using NUnit.Framework; -using System; +using System; namespace PrimeFuncPack.Core.Tests;