From 056975ef8544056cbb9bc60348a33c205036037f Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Fri, 3 May 2024 15:44:12 -0700 Subject: [PATCH] Using pattern ... --- .gitignore | 1 + .vscode/mklink.md | 11 ---------- Adaptation/.vscode/mklink.md | 5 +++++ Adaptation/.vscode/tasks.json | 22 +++++++++++++++++++ .../Staging/v2.56.0/DEP08SIHTRPLC.cs | 2 +- .../Extract/Staging/v2.56.0/DEP08SIHTRPLC.cs | 2 +- Adaptation/_Tests/Shared/AdaptationTesting.cs | 2 ++ 7 files changed, 32 insertions(+), 13 deletions(-) delete mode 100644 .vscode/mklink.md create mode 100644 Adaptation/.vscode/mklink.md diff --git a/.gitignore b/.gitignore index dce63ed..56d8c06 100644 --- a/.gitignore +++ b/.gitignore @@ -342,3 +342,4 @@ ASALocalRun/ *.lnk .kanbn +Adaptation/.kanbn diff --git a/.vscode/mklink.md b/.vscode/mklink.md deleted file mode 100644 index b109732..0000000 --- a/.vscode/mklink.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -type: "note" -created: "2023-10-20T03:52:57.401Z" -updated: "2023-10-20T03:53:49.161Z" ---- - -# mklink - -```bash -mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\DEP08SIHTRPLC\06_SourceCode\DEP08SIHTRPLC\.kanbn" "D:\5-Other-Small\Kanban\DEP08SIHTRPLC" -``` diff --git a/Adaptation/.vscode/mklink.md b/Adaptation/.vscode/mklink.md new file mode 100644 index 0000000..ac35d79 --- /dev/null +++ b/Adaptation/.vscode/mklink.md @@ -0,0 +1,5 @@ +# mklink + +```bash +mklink /J "T:\MESAFIBACKLOG\06_SourceCode\MESAFIBACKLOG\Adaptation\.kanbn" "D:\5-Other-Small\Kanban\MESAFIBACKLOG" +``` diff --git a/Adaptation/.vscode/tasks.json b/Adaptation/.vscode/tasks.json index 69ca100..3635129 100644 --- a/Adaptation/.vscode/tasks.json +++ b/Adaptation/.vscode/tasks.json @@ -12,6 +12,28 @@ ], "problemMatcher": "$msCompile" }, + { + "label": "Test-Debug", + "command": "dotnet", + "type": "process", + "args": [ + "test", + "-c", + "Debug" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "Test-Release", + "command": "dotnet", + "type": "process", + "args": [ + "test", + "-c", + "Release" + ], + "problemMatcher": "$msCompile" + }, { "label": "Format", "command": "dotnet", diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/DEP08SIHTRPLC.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/DEP08SIHTRPLC.cs index d885566..7a64378 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/DEP08SIHTRPLC.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/DEP08SIHTRPLC.cs @@ -60,4 +60,4 @@ public class DEP08SIHTRPLC : EAFLoggingUnitTesting } } -#endif +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/DEP08SIHTRPLC.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/DEP08SIHTRPLC.cs index 14dc64c..f9f7b18 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/DEP08SIHTRPLC.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/DEP08SIHTRPLC.cs @@ -26,4 +26,4 @@ public class DEP08SIHTRPLC public void Staging__v2_56_0__DEP08SIHTRPLC__ZipFilesByDate() => _DEP08SIHTRPLC.Staging__v2_56_0__DEP08SIHTRPLC__ZipFilesByDate(); } -#endif +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Shared/AdaptationTesting.cs b/Adaptation/_Tests/Shared/AdaptationTesting.cs index 178b9ea..e052298 100644 --- a/Adaptation/_Tests/Shared/AdaptationTesting.cs +++ b/Adaptation/_Tests/Shared/AdaptationTesting.cs @@ -1244,6 +1244,8 @@ public class AdaptationTesting : ISMTP { string result; Tuple> extractResult = fileRead.ReExtract(); + if(extractResult is null) + throw new Exception($"Using pattern {variables[4]} no file was found <{variables[2]}>"); if (!fileRead.IsDuplicator) { Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1));