@@ -30,7 +30,7 @@ function TestingHelperTest_NewModuleV3_WithName_RemotePath {
3030 Assert-AddModuleV3 - Path $expectedPath
3131}
3232
33- function TestingHelperTest_NewModuleV3_WithOutName {
33+ function TestingHelperTest_NewModuleV3_WithOutName_LocalPath {
3434
3535 # Error as the name is mandatory
3636
@@ -40,9 +40,31 @@ function TestingHelperTest_NewModuleV3_WithOutName {
4040 $result = New-TT_ModuleV3 @ErrorParameters
4141
4242 Assert-IsNull - Object $result
43- Assert-Contains - Expected " Path and Name cannot be null or empty at the same time. " - Presented $errorVar.Exception.Message
43+ Assert-Contains - Expected " Name and Path cannot be both empty" - Presented $errorVar.Exception.Message
4444}
4545
46+ function TestingHelperTest_NewModuleV3_WithOutName_withPath {
47+
48+ $folder = New-TestingFolder - Name " ModulefolderName" - PassThru
49+ $finalFolder = $folder.FullName | Join-Path - ChildPath " ModulefolderName"
50+
51+ $result = New-TT_ModuleV3 - Path $folder @ErrorParameters
52+
53+ Assert-AreEqualPath - Expected $finalFolder - Presented $result
54+ Assert-AddModuleV3 - Path $finalFolder
55+ }
56+
57+ function TestingHelperTest_NewModuleV3_WithOutName_WithPath_AddAll {
58+
59+ $folder = New-TestingFolder - Name " ModulefolderName" - PassThru
60+ $finalFolder = $folder.FullName | Join-Path - ChildPath " ModulefolderName"
61+
62+ $result = New-TT_ModuleV3 - Path $folder - AddAll @ErrorParameters
63+
64+ Assert-AreEqualPath - Expected $finalFolder - Presented $result
65+ Assert-AddAll - Path $folder
66+
67+ }
4668function TestingHelperTest_NewModuleV3_AddTesting {
4769
4870 $moduleName = " MyModule"
0 commit comments