public void GetAgentVersion() { var platform = new Platform(new GaePlatformDetails(_projectId, "instance", _module, _version)); var agentVersion = DebuggeeUtils.GetAgentVersion(platform); Assert.Contains("google.com", agentVersion); Assert.Contains("csharp", agentVersion); Assert.Contains("gae", agentVersion); Assert.Contains(DebuggeeUtils.GetVersion(), agentVersion); }
public void CreateDebuggee() { var debuggee = DebuggeeUtils.CreateDebuggee(_projectId, _module, _version, null); Assert.Equal(DebuggeeUtils.GetAgentVersion(Common.Platform), debuggee.AgentVersion); Assert.Equal(DebuggeeUtils.GetDescription(_module, _version), debuggee.Description); Assert.Equal(_projectId, debuggee.Project); Assert.Equal(3, debuggee.Labels.Count); Assert.Equal(_projectId, debuggee.Labels["projectid"]); Assert.Equal(_module, debuggee.Labels["module"]); Assert.Equal(_version, debuggee.Labels["version"]); Assert.NotNull(debuggee.SourceContexts); Assert.False(string.IsNullOrWhiteSpace(debuggee.Uniquifier)); }