@@ -67,7 +67,6 @@ public override void Because()
67
67
}
68
68
}
69
69
70
- [ Broken , Pending ( "Need to be fixed in either NuGet.Client or before calling code in NuGet.Client" ) ]
71
70
public class when_searching_for_exact_package_through_command : CommandScenariosBase
72
71
{
73
72
public override void Context ( )
@@ -94,7 +93,7 @@ public void should_log_package_information()
94
93
. ToShortDateString ( ) ;
95
94
96
95
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 ) ) ;
96
+ 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
97
}
99
98
100
99
[ Fact ]
@@ -105,7 +104,6 @@ public void should_log_package_count_as_warning()
105
104
}
106
105
}
107
106
108
- [ Broken , Pending ( "Need to be fixed in either NuGet.Client or before calling code in NuGet.Client" ) ]
109
107
public class when_searching_for_exact_package_with_dot_relative_path_source : when_searching_for_exact_package_through_command
110
108
{
111
109
public override void Context ( )
@@ -143,7 +141,7 @@ public override void Because()
143
141
. ToShortDateString ( ) ;
144
142
145
143
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 ) ) ;
144
+ 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
145
}
148
146
149
147
[ Fact ]
@@ -154,7 +152,6 @@ public override void Because()
154
152
}
155
153
}
156
154
157
- [ Broken , Pending ( "Need to be fixed in either NuGet.Client or before calling code in NuGet.Client" ) ]
158
155
public class when_searching_for_exact_package_with_verbose_output : ScenariosBase
159
156
{
160
157
public override void Context ( )
@@ -193,7 +190,9 @@ public void should_report_expected_name()
193
190
[ Fact ]
194
191
public void should_set_source_to_expected_value ( )
195
192
{
196
- Results [ 0 ] . Source . ShouldEqual ( "PackageOutput" ) ;
193
+ Results [ 0 ] . Source . ShouldEqual (
194
+ ( "file:///" + Path . Combine ( Environment . CurrentDirectory , "PackageOutput" ) )
195
+ . Replace ( "\\ " , "/" ) ) ;
197
196
}
198
197
199
198
[ Fact ]
0 commit comments