From f276ababd7fc323dc92386a2500fe92b600fa00f Mon Sep 17 00:00:00 2001 From: Jonas Merkle Date: Wed, 7 Jun 2023 08:47:59 +0200 Subject: [PATCH 1/4] adds strong naming --- .../jjm.one.MiscUtilClasses.Tests.SignKey.snk | Bin 0 -> 596 bytes .../jjm.one.MiscUtilClasses.Tests.csproj | 3 +++ .../jjm.one.MiscUtilClasses.SignKey.snk | Bin 0 -> 596 bytes .../jjm.one.MiscUtilClasses.csproj | 4 ++++ 4 files changed, 7 insertions(+) create mode 100644 src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.SignKey.snk create mode 100644 src/jjm.one.MiscUtilClasses/jjm.one.MiscUtilClasses.SignKey.snk diff --git a/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.SignKey.snk b/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.SignKey.snk new file mode 100644 index 0000000000000000000000000000000000000000..1458b9a4f87a3372595e6476ac3a5c0933e376e3 GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa500962U7FR9jNaA$PAc6o2mso+Q)NgB&6WTl zthO0;NiJ9bxr|HY^XjNl~iYFxOeoWhCc& zmlpAwP_m;;XWitEO|NzMD{sv^Ia;6|VK;NCzF@c0yNkEm;magVJ$t3chYu+F{T z<7A1xpWFk1umj|qJc$WX%kRs2gJNyJhd74P*?@|BSR+1OSnMv=@P+wIbSOpft{-KQX;0$e9f;-N30KW26`FuJ4ofa=%CYWryvlmkWC#{_}S|_517nQ^VO`2%_kez< zok6rI7BEQojktVMg^?4p0sy@2+Q-`a!@sS6dlWX*RMcJFhND{Xy*%t`#J6ovi?=t* zx;C0a8^keGY!r)n@Dg&ZueZUK3J6t+I~f4q z`1`RCS5vn;t)2+gfirjKzd%S{%MD4~1`hh$3Q1YuO)!;MGqrh3`v!2%B_JoPU5Y9b z=QAa}>vx73KH;ag)h+4+UNm~iuU-wcnlLv(H9cD3&gI)R((qHX1%^0;#54Y%383S= zGALcKYQVa#`E9n5*bUU0GQpO0M%9kw+HQ;lfdXq(PJD?N#I#`l!C&-+$o7Gef*#>H i#aN6$8q;ROB?TeOU1#V%Pvnu(p1LD>xb4`+Fbqj)r7D&H literal 0 HcmV?d00001 diff --git a/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.csproj b/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.csproj index 45f1e20..898f245 100644 --- a/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.csproj +++ b/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.csproj @@ -10,11 +10,14 @@ jjm.one.MiscUtilClasses.Tests jjm.one.MiscUtilClasses.Tests A collection of miscellaneous utility and helper classes for C# projects. (Unit-Tests) + utility, helper, function, csharp, tests https://github.com/jjm-one/jjm.one.MiscUtilClasses git https://github.com/jjm-one/jjm.one.MiscUtilClasses.git false true + True + jjm.one.MiscUtilClasses.Tests.SignKey.snk diff --git a/src/jjm.one.MiscUtilClasses/jjm.one.MiscUtilClasses.SignKey.snk b/src/jjm.one.MiscUtilClasses/jjm.one.MiscUtilClasses.SignKey.snk new file mode 100644 index 0000000000000000000000000000000000000000..7a7e9f7945fe0412994ae92a810565222c778f9a GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50097{>&O$^cDJlRNZAe>pTt-b`Vf3qJ{9ZJ zOra*v!ZdyGUD!Zv1SC1<13gQil?kr7;qLU!*FL}|0ZP{i5Id4FX%=WI&J)APy4f_cD=F5Rviq0wzQe*Z z0Z5yZI=GgClWGQGu7!O(a{8^Rzo8%MLgLyma>>R-|C<-aQtnoRVC2ZGIbsCTPBK1_ zA8(j%mPs1~@^j_K4@&yjtMUx6o&;na5>0$@O*9Vk(kbHHWoJI+;8bfPkE6*ieZ1p0!>?R~(8e{E|cMr79Mc?Sr z9^*l8rFxVpgt2aNLg)V`+?UH|h!04`SHscyD#0Ib#*l&yI5*7oT50yQG-Fq)s-mDt zFFcJ!UJYR+YcKpuS8czl3Blx3NDj?Jy2kx=FH&`FchG&>l0d43|0dzyyGA#Rp4G9t zeCFIUsw_-V=HgpqI?I6NeX*kYw|FV`(sirkX=9fcBUAie<5UCrjACJ|`K;>|8<(Oj z#f(T2DFi}o&QJV}f}5MRS`=N@Y6==q>PZZgWZF{?o>4_F<0;ODja2}GPUMK%Kz{_v ip*K-VI@-ixeh1BmB;d6Sv{8~K)<0n}$SA*9dF5UsP91^( literal 0 HcmV?d00001 diff --git a/src/jjm.one.MiscUtilClasses/jjm.one.MiscUtilClasses.csproj b/src/jjm.one.MiscUtilClasses/jjm.one.MiscUtilClasses.csproj index 26d5134..ab6c6de 100644 --- a/src/jjm.one.MiscUtilClasses/jjm.one.MiscUtilClasses.csproj +++ b/src/jjm.one.MiscUtilClasses/jjm.one.MiscUtilClasses.csproj @@ -7,9 +7,11 @@ 1.0.0-alpha.2 Jonas Merkle [JJM] © by Jonas Merkle [JJM], 2023. + jjm.one.MiscUtilClasses jjm.one.MiscUtilClasses jjm.one.MiscUtilClasses A collection of miscellaneous utility and helper classes for C# projects. + utility, helper, function, csharp https://github.com/jjm-one/jjm.one.MiscUtilClasses git https://github.com/jjm-one/jjm.one.MiscUtilClasses.git @@ -17,6 +19,8 @@ LICENSE True True + True + jjm.one.MiscUtilClasses.SignKey.snk From c2b1e368f27e818e75d1c0dca80907c4cefd0dc1 Mon Sep 17 00:00:00 2001 From: "Jonas Merkle [JJM]" Date: Wed, 7 Jun 2023 09:02:31 +0200 Subject: [PATCH 2/4] updates *.csproj files --- .../jjm.one.MiscUtilClasses.Tests.csproj | 2 +- src/jjm.one.MiscUtilClasses/jjm.one.MiscUtilClasses.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.csproj b/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.csproj index 898f245..87f4a23 100644 --- a/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.csproj +++ b/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.csproj @@ -10,7 +10,7 @@ jjm.one.MiscUtilClasses.Tests jjm.one.MiscUtilClasses.Tests A collection of miscellaneous utility and helper classes for C# projects. (Unit-Tests) - utility, helper, function, csharp, tests + utility, helper, classes, csharp, tests https://github.com/jjm-one/jjm.one.MiscUtilClasses git https://github.com/jjm-one/jjm.one.MiscUtilClasses.git diff --git a/src/jjm.one.MiscUtilClasses/jjm.one.MiscUtilClasses.csproj b/src/jjm.one.MiscUtilClasses/jjm.one.MiscUtilClasses.csproj index ab6c6de..14c0316 100644 --- a/src/jjm.one.MiscUtilClasses/jjm.one.MiscUtilClasses.csproj +++ b/src/jjm.one.MiscUtilClasses/jjm.one.MiscUtilClasses.csproj @@ -11,7 +11,7 @@ jjm.one.MiscUtilClasses jjm.one.MiscUtilClasses A collection of miscellaneous utility and helper classes for C# projects. - utility, helper, function, csharp + utility, helper, classes, csharp https://github.com/jjm-one/jjm.one.MiscUtilClasses git https://github.com/jjm-one/jjm.one.MiscUtilClasses.git From 06c629d964ddde6cd7b800d971477243a999a15a Mon Sep 17 00:00:00 2001 From: "Jonas Merkle [JJM]" Date: Wed, 7 Jun 2023 09:02:55 +0200 Subject: [PATCH 3/4] adds vscode settings --- .vscode/launch.json | 26 ++++++++++++++++++++++++++ .vscode/tasks.json | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..a57ee79 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,26 @@ +{ + "version": "0.2.0", + "configurations": [ + { + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/src/jjm.one.MiscUtilClasses.Tests/bin/Debug/net7.0/jjm.one.MiscUtilClasses.Tests.dll", + "args": [], + "cwd": "${workspaceFolder}/src/jjm.one.MiscUtilClasses.Tests", + // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..835fd31 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "--project", + "${workspaceFolder}/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.csproj" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file From 73c62b3e9eb350fd563e01a7aad78ea196b3ae6e Mon Sep 17 00:00:00 2001 From: "Jonas Merkle [JJM]" Date: Wed, 7 Jun 2023 09:19:39 +0200 Subject: [PATCH 4/4] updates tests --- .../Types/basic/AppInfoTests.cs | 54 ++++++++++--------- .../jjm.one.MiscUtilClasses.Tests.xml | 8 +-- 2 files changed, 33 insertions(+), 29 deletions(-) diff --git a/src/jjm.one.MiscUtilClasses.Tests/Types/basic/AppInfoTests.cs b/src/jjm.one.MiscUtilClasses.Tests/Types/basic/AppInfoTests.cs index 91c57e9..ba6c4dc 100644 --- a/src/jjm.one.MiscUtilClasses.Tests/Types/basic/AppInfoTests.cs +++ b/src/jjm.one.MiscUtilClasses.Tests/Types/basic/AppInfoTests.cs @@ -7,15 +7,17 @@ namespace jjm.one.MiscUtilClasses.Tests.Types.basic /// public class AppInfoTests { - #region Test "ctor" + #region tests + + #region Test "ctor" /// - /// 1. test of the default ctos. + /// 1. test of the default constructor. /// - [Fact] - public void CtorTest1() - { - var appInfo = new AppInfo(); + [Fact] + public void CtorTest1() + { + var appInfo = new AppInfo(); Assert.Equal("unknown", appInfo.AppName); Assert.Equal("unknown", appInfo.AppVersion); @@ -25,7 +27,7 @@ public void CtorTest1() } /// - /// 2. test of the default ctor. + /// 2. test of the default constructor. /// [Fact] public void CtorTest2() @@ -47,7 +49,7 @@ public void CtorTest2() } /// - /// 1. test of the additional ctor. + /// 1. test of the additional constructor. /// [Fact] public void CtorTest3() @@ -68,7 +70,7 @@ public void CtorTest3() } /// - /// 2. test of the additional ctor. + /// 2. test of the additional constructor. /// [Fact] public void CtorTest4() @@ -96,31 +98,33 @@ public void CtorTest4() /// 1. test of the "ToString()" method. /// [Fact] - public void ToStringTest1() - { - var appInfo = new AppInfo(); + public void ToStringTest1() + { + var appInfo = new AppInfo(); - Assert.Equal("unknown [Version: unknown - unknown @ unknown | Env: unknown]", appInfo.ToString()); - } + Assert.Equal("unknown [Version: unknown - unknown @ unknown | Env: unknown]", appInfo.ToString()); + } - /// - /// 2. test of the "ToString()" method. - /// + /// + /// 2. test of the "ToString()" method. + /// [Fact] public void ToStringTest2() { - var appInfo = new AppInfo - { - AppName = "A", - AppVersion = "B", - AppBuildDate = "C", - AppBuildTime = "D", - AppRuntimeEnvironment = "E" - }; + var appInfo = new AppInfo + { + AppName = "A", + AppVersion = "B", + AppBuildDate = "C", + AppBuildTime = "D", + AppRuntimeEnvironment = "E" + }; Assert.Equal("A [Version: B - C @ D | Env: E]", appInfo.ToString()); } #endregion + + #endregion } } diff --git a/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.xml b/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.xml index ce5a27e..6338c2c 100644 --- a/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.xml +++ b/src/jjm.one.MiscUtilClasses.Tests/jjm.one.MiscUtilClasses.Tests.xml @@ -11,22 +11,22 @@ - 1. test of the default ctos. + 1. test of the default constructor. - 2. test of the default ctor. + 2. test of the default constructor. - 1. test of the additional ctor. + 1. test of the additional constructor. - 2. test of the additional ctor. + 2. test of the additional constructor.