You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assert.True(validPackageNames.Contains(BuildConstants.RunnerPackage.PackageName),$"PackageName should be one of the following '{string.Join(", ",validPackageNames)}', current PackageName is '{BuildConstants.RunnerPackage.PackageName}'");
Copy file name to clipboardexpand all lines: src/Test/L0/RunnerWebProxyL0.cs
+16-2
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,14 @@ public void IsNotUseRawHttpClientHandler()
65
65
}
66
66
}
67
67
68
-
Assert.True(badCode.Count==0,$"The following code is using Raw HttpClientHandler() which will not follow the proxy setting agent have. Please use HostContext.CreateHttpClientHandler() instead.\n{string.Join("\n",badCode)}");
68
+
if(badCode.Count>0)
69
+
{
70
+
Assert.Fail($"The following code is using Raw HttpClientHandler() which will not follow the proxy setting agent have. Please use HostContext.CreateHttpClientHandler() instead.\n{string.Join("\n",badCode)}");
71
+
}
72
+
else
73
+
{
74
+
Assert.True(true);
75
+
}
69
76
}
70
77
71
78
[Fact]
@@ -112,7 +119,14 @@ public void IsNotUseRawHttpClient()
112
119
}
113
120
}
114
121
115
-
Assert.True(badCode.Count==0,$"The following code is using Raw HttpClient() which will not follow the proxy setting agent have. Please use New HttpClient(HostContext.CreateHttpClientHandler()) instead.\n{string.Join("\n",badCode)}");
122
+
if(badCode.Count>0)
123
+
{
124
+
Assert.Fail($"The following code is using Raw HttpClient() which will not follow the proxy setting agent have. Please use New HttpClient(HostContext.CreateHttpClientHandler()) instead.\n{string.Join("\n",badCode)}");
0 commit comments