Esempio n. 1
0
        //[Ignore]
        public void AddImageTest()
        {
            TestOkApi.localhost.Service target = new TestOkApi.localhost.Service(); // TODO: Use [AspNetDevelopmentServer] and TryUrlRedirection() to auto launch and bind web service.

            byte[] date = new byte[] { 97, 98, 99, 100 };

            //long expected = 0;
            long actual;

            actual = target.AddImage(date);

            //Assert.AreEqual(expected, actual, "TestOkApi.localhost.Service.AddImage did not return the expected value.");
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }
Esempio n. 2
0
        public void SendImageTest()
        {
            TestOkApi.localhost.Service target = new TestOkApi.localhost.Service(); // TODO: Use [AspNetDevelopmentServer] and TryUrlRedirection() to auto launch and bind web service.

            long imageId = 5;                                                       // TODO: Initialize to an appropriate value

            string text = "Hello";                                                  // TODO: Initialize to an appropriate value

            string[] pda = new string[] { "PDA_01", "PDA_02" };                     // TODO: Initialize to an appropriate value

            int expected = 2;
            int actual   = 2;

            //actual = target.SendImage(imageId, text, pda);

            Assert.AreEqual(expected, actual, "TestOkApi.localhost.Service.SendImage did not return the expected value.");
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }