Ejemplo n.º 1
0
 public void GetQuestionListForBaZiTest()
 {
     QAService target = new QAService(); // TODO: 初始化为适当的值
     int pagesize = 1; // TODO: 初始化为适当的值
     int pageindex = 15; // TODO: 初始化为适当的值
     string key = string.Empty; // TODO: 初始化为适当的值
     int cate = 0; // TODO: 初始化为适当的值
     string orderby = string.Empty; // TODO: 初始化为适当的值
     ReturnValue<PageInfo<QA_QuestionShowMini<BaZiMod>>> expected = null; // TODO: 初始化为适当的值
     ReturnValue<PageInfo<QA_QuestionShowMini<BaZiMod>>> actual;
     actual = target.GetQuestionListForBaZi(pagesize, pageindex, key, cate, orderby);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("验证此测试方法的正确性。");
 }
Ejemplo n.º 2
0
 public void AddQuestionWithChartTest()
 {
     QAService target = new QAService(); // TODO: 初始化为适当的值
     using (StreamReader sr = new StreamReader(@"D:\json.txt", System.Text.Encoding.UTF8))
     {
         string str = sr.ReadToEnd();
         Stream openPageData = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(str));
         ReturnValue<USR_CustomerShow> expected = null; // TODO: 初始化为适当的值
         ReturnValue<USR_CustomerShow> actual = ReturnValue<USR_CustomerShow>.Get404Error(str);
         actual = target.AddQuestionWithChart(openPageData);
         Assert.AreEqual(expected, actual);
         Assert.Inconclusive("验证此测试方法的正确性。");
     }
 }