public void GetToolStatisticsFromRequestUrl(string requestUrl, string id, string version, string exe) { var toolInfo = ToolStatisticsParser.GetToolStatisticsFromRequestUrl(requestUrl, DateTime.UtcNow); Assert.Equal(id, toolInfo.ToolId); Assert.Equal(version, toolInfo.ToolVersion); Assert.Equal(exe, toolInfo.FileName); Assert.Equal(string.Join("/", id, version, exe), toolInfo.Path); }
public void GetDnxStatisticsFromRequestUrl(string requestUrl, string dnxVersion, string operatingSystem, string fileName) { var toolInfo = ToolStatisticsParser.GetToolStatisticsFromRequestUrl(requestUrl, DateTime.UtcNow); var dnxInfo = DnxStatisticsParser.GetDnxStatisticsFromRequestUrl(requestUrl, DateTime.UtcNow); Assert.Equal(dnxVersion, dnxInfo.DnxVersion); Assert.Equal(operatingSystem, dnxInfo.OperatingSystem); Assert.Equal(fileName, dnxInfo.FileName); Assert.Equal(string.Join("/", dnxVersion, operatingSystem, fileName), dnxInfo.Path); }