Fix test build break
This commit is contained in:
parent
1e423d4f1b
commit
32e7f3bc7a
1 changed files with 0 additions and 24 deletions
|
@ -48,30 +48,6 @@ namespace Microsoft.DotNet.ProjectModel.Server.Tests
|
||||||
return payload;
|
return payload;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static JObject RetrieveCompilationDiagnostics(this DthMessage message, string frameworkShortName)
|
|
||||||
{
|
|
||||||
Assert.NotNull(message);
|
|
||||||
Assert.Equal(MessageTypes.AllDiagnostics, message.MessageType);
|
|
||||||
|
|
||||||
Assert.True(message.Payload is JArray);
|
|
||||||
var payload = (JArray)message.Payload;
|
|
||||||
|
|
||||||
foreach (var each in payload)
|
|
||||||
{
|
|
||||||
Assert.True(each is JObject);
|
|
||||||
var diagnosticsOfFramework = (JObject)each;
|
|
||||||
|
|
||||||
if (string.Equals(diagnosticsOfFramework["Framework"]["ShortName"].Value<string>(),
|
|
||||||
frameworkShortName,
|
|
||||||
StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
return diagnosticsOfFramework;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static T RetrievePayloadAs<T>(this DthMessage message)
|
public static T RetrievePayloadAs<T>(this DthMessage message)
|
||||||
where T : JToken
|
where T : JToken
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue