Esempio n. 1
0
        public void HttpParameters_Join_Required_Missing_Exception()
        {
            TAPDRequiredParameterMissingException exception = null;

            try
            {
                var request = new TAPDTestRequest();

                string result = TAPDHttp.JoinHttpParameters(12345678, request);
            }
            catch (TAPDRequiredParameterMissingException ex)
            {
                exception = ex;
            }

            Assert.AreNotEqual(exception, null);
        }
Esempio n. 2
0
        public string[] HttpParameters_Join_Succeed(int workspaceID, int intValue, string stringValue, float floatValue, int resetNameValue, string requiredValue)
        {
            var request = new TAPDTestRequest();

            request.intValue       = intValue;
            request.stringValue    = stringValue;
            request.floatValue     = floatValue;
            request.resetNameValue = resetNameValue;
            request.requiredValue  = requiredValue;

            string result = TAPDHttp.JoinHttpParameters(workspaceID, request);

            string[] stringList = result.Split('&');

            Array.Sort(stringList);

            return(stringList);
        }
Esempio n. 3
0
        public void Request_API_Succeed()
        {
            var response = TAPDHttp.Request <string>(TAPDHttpAPI.BASE_URL);

            Assert.AreEqual(response.status, TAPDHttpStatus.Succeed);
        }