public void Add_A_Status_Test() { // Arrange var text = "▓Р╩ниб╦═╬б▓Е " + DateTime.Now.ToLongTimeString(); var request = new QQStatusAddRequest(text) { ClientIp = IPUtility.GetFirstLocalIP() }; // Act var response = WeiboClient.Post(request); // Assert Assert.IsNotNull(response); Assert.AreEqual("0", response.Ret); Console.WriteLine(response.Id); Console.WriteLine(response.Timestamp); }
public void Add_A_Comment_Test() { // Arrange var text = "²âÊÔ·¢ÆÀÂÛ " + DateTime.Now.ToLongTimeString(); var reid = "47032096626287"; var request = new QQCommentAddRequest(reid, text) { ClientIp = IPUtility.GetFirstLocalIP() }; // Act var response = WeiboClient.Post(request); // Assert Assert.IsNotNull(response); Assert.AreEqual("0", response.Ret); Console.WriteLine(response.Id); Console.WriteLine(response.Timestamp); }