コード例 #1
0
        public void GetLogTest()
        {
            AgentLog target = AgentLog.GetStartedInstance(); // TODO: Initialize to an appropriate value
            int      taskId = 1;                             // TODO: Initialize to an appropriate value

            target.GetLog(taskId);
            Assert.AreEqual(AgentSetting.AddressUrl + AgentSetting.CommandLogDownload, TestCallerFactory.UrlString);
            Assert.AreEqual(
                @"{""TaskId"":0,""BusinessCredentials"":{""LicenseKey"":""xxxxx-xxxxxx""}}",
                TestCallerFactory.JsonString);
        }