@@ -10,6 +10,7 @@ namespace chocolatey.tests.integration.scenarios
10
10
using chocolatey . infrastructure . app . configuration ;
11
11
using chocolatey . infrastructure . app . services ;
12
12
using chocolatey . infrastructure . commands ;
13
+ using chocolatey . infrastructure . platforms ;
13
14
using chocolatey . infrastructure . results ;
14
15
15
16
using NuGet ;
@@ -67,7 +68,6 @@ public override void Because()
67
68
}
68
69
}
69
70
70
- [ Broken , Pending ( "Need to be fixed in either NuGet.Client or before calling code in NuGet.Client" ) ]
71
71
public class when_searching_for_exact_package_through_command : CommandScenariosBase
72
72
{
73
73
public override void Context ( )
@@ -94,7 +94,7 @@ public void should_log_package_information()
94
94
. ToShortDateString ( ) ;
95
95
96
96
MockLogger . Messages . Keys . ShouldContain ( LogLevel . Info . to_string ( ) ) ;
97
- MockLogger . Messages [ LogLevel . Info . to_string ( ) ] . ShouldContain ( " Title: installpackage | Published: 14.12.2022 \r \n Number of Downloads: n/a | Downloads for this version: n/a\r \n Package url\r \n Chocolatey Package Source: n/a\r \n Tags: installpackage admin\r \n Software Site: n/a\r \n Software License: n/a\r \n Summary: __REPLACE__\r \n Description: __REPLACE__\r \n " . format_with ( lastWriteDate ) ) ;
97
+ MockLogger . Messages [ LogLevel . Info . to_string ( ) ] . ShouldContain ( " Title: installpackage | Published: {0} \r \n Number of Downloads: n/a | Downloads for this version: n/a\r \n Package url\r \n Chocolatey Package Source: n/a\r \n Tags: installpackage admin\r \n Software Site: n/a\r \n Software License: n/a\r \n Summary: __REPLACE__\r \n Description: __REPLACE__\r \n " . format_with ( lastWriteDate ) ) ;
98
98
}
99
99
100
100
[ Fact ]
@@ -105,7 +105,6 @@ public void should_log_package_count_as_warning()
105
105
}
106
106
}
107
107
108
- [ Broken , Pending ( "Need to be fixed in either NuGet.Client or before calling code in NuGet.Client" ) ]
109
108
public class when_searching_for_exact_package_with_dot_relative_path_source : when_searching_for_exact_package_through_command
110
109
{
111
110
public override void Context ( )
@@ -143,7 +142,7 @@ public override void Because()
143
142
. ToShortDateString ( ) ;
144
143
145
144
MockLogger . Messages . Keys . ShouldContain ( LogLevel . Info . to_string ( ) ) ;
146
- MockLogger . Messages [ LogLevel . Info . to_string ( ) ] . ShouldContain ( " Title: installpackage | Published: 14.12.2022 \r \n Number of Downloads: n/a | Downloads for this version: n/a\r \n Package url\r \n Chocolatey Package Source: n/a\r \n Tags: installpackage admin\r \n Software Site: n/a\r \n Software License: n/a\r \n Summary: __REPLACE__\r \n Description: __REPLACE__\r \n " . format_with ( lastWriteDate ) ) ;
145
+ MockLogger . Messages [ LogLevel . Info . to_string ( ) ] . ShouldContain ( " Title: installpackage | Published: {0} \r \n Number of Downloads: n/a | Downloads for this version: n/a\r \n Package url\r \n Chocolatey Package Source: n/a\r \n Tags: installpackage admin\r \n Software Site: n/a\r \n Software License: n/a\r \n Summary: __REPLACE__\r \n Description: __REPLACE__\r \n " . format_with ( lastWriteDate ) ) ;
147
146
}
148
147
149
148
[ Fact ]
@@ -154,7 +153,6 @@ public override void Because()
154
153
}
155
154
}
156
155
157
- [ Broken , Pending ( "Need to be fixed in either NuGet.Client or before calling code in NuGet.Client" ) ]
158
156
public class when_searching_for_exact_package_with_verbose_output : ScenariosBase
159
157
{
160
158
public override void Context ( )
@@ -193,7 +191,9 @@ public void should_report_expected_name()
193
191
[ Fact ]
194
192
public void should_set_source_to_expected_value ( )
195
193
{
196
- Results [ 0 ] . Source . ShouldEqual ( "PackageOutput" ) ;
194
+ Results [ 0 ] . Source . ShouldEqual (
195
+ ( ( Platform . get_platform ( ) == PlatformType . Windows ? "file:///" : "file://" ) + Path . Combine ( Environment . CurrentDirectory , "PackageOutput" ) )
196
+ . Replace ( "\\ " , "/" ) ) ;
197
197
}
198
198
199
199
[ Fact ]
0 commit comments