Esempio n. 1
0
        public void Test1()
        {
            EndPointsResponse response = new EndPointsResponse();

            response.getCommandandID(path1);
            string ExpectedCommand = response.getCommand();
            string resultCommand   = "messages";

            Assert.AreEqual(ExpectedCommand, resultCommand);
        }
Esempio n. 2
0
        public void TestGetshortMsg()
        {
            EndPointsResponse response = new EndPointsResponse();

            response.getCommandandInfo(path6);
            string ExpectedCommand = response.getCommand();
            string resultCommand   = "text";

            Assert.AreEqual(ExpectedCommand, resultCommand);
        }
Esempio n. 3
0
        public void TestEmptyMsg()
        {
            EndPointsResponse response = new EndPointsResponse();

            response.getCommandandInfo(path5);
            string ExpectedCommand = response.getCommand();
            string resultCommand   = "";

            Assert.AreEqual(ExpectedCommand, resultCommand);
        }
Esempio n. 4
0
        public void Test6()
        {
            EndPointsResponse response = new EndPointsResponse();

            response.getCommandandID(path5);
            string ExpectedCommand = response.getCommand();
            string resultCommand   = "";

            Assert.AreEqual(ExpectedCommand, resultCommand);
            bool ExpectedCheck = response.getCheck2();
            bool resultCheck   = false;

            Assert.AreEqual(ExpectedCheck, resultCheck);
        }