Exemple #1
0
        public void TestSaveTestCaseFile()
        {
            TestCaseManager.SaveTestCaseFile(GetType(), "TestCaseSaver", "0987654321");
            string str = TestCaseManager.LoadTestCaseFile(GetType(), "TestCaseSaver");

            Assert.AreEqual("0987654321", str);
        }
Exemple #2
0
        public void TestLoadTestCaseFile()
        {
            string str = TestCaseManager.LoadTestCaseFile(GetType(), "TestCaseLoader");

            Assert.AreEqual("1234567890", str);

            str = TestCaseManager.LoadTestCaseFile("com.wer.sc.mockdata", "TestCaseLoader");
            Assert.AreEqual("1234567890", str);
        }
Exemple #3
0
        /// <summary>
        /// 检验tick数据的正确性
        /// </summary>
        /// <param name="excepedFileName"></param>
        /// <param name="type"></param>
        /// <param name="tickData"></param>
        public static void AssertEqual_TickData(String excepedFileName, Type type, ITickData tickData)
        {
            string expcetedResult = TestCaseManager.LoadTestCaseFile(type.Namespace, excepedFileName);

            AssertEqual_TickData(expcetedResult, tickData);
        }
Exemple #4
0
        public static void AssertEqual_List <T>(String excepedFileName, Type type, IList <T> actualList)
        {
            string expcetedResult = TestCaseManager.LoadTestCaseFile(type.Namespace, excepedFileName);

            AssertEqual_List(expcetedResult, actualList);
        }