Fix test build break

This commit is contained in:
Troy Dai 2016-01-13 10:28:33 -08:00
parent 1e423d4f1b
commit 32e7f3bc7a

View file

@ -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
{ {