public void TestGetApiVersion()
        {
            object[] result = trac.getAPIVersion();

            Assert.IsNotNull(result);
            Assert.AreEqual <int>(3, result.Length);
        }
        public static void Init(TestContext context)
        {
            ServicePointManager.ServerCertificateValidationCallback += delegate(object sender, X509Certificate cert, X509Chain chain, System.Net.Security.SslPolicyErrors error)
            {
                // just accept any ssl connection for the unit tests
                return(true);
            };

            //List<ServerDetails> servers = ServerDetails.LoadAll();

            SetAllowUnsafeHeaderParsing();
            //trac = TracCommon.GetTrac(servers[1]); // get the first server from the registry

            var server = new ServerDetails("https://gtsoftware.xp-dev.com/trac/TracExplorer/", "buildserver", "e5Yz6w4X4MFQmDUgEndK");

            trac = TracCommon.GetTrac(server);

            xmlrpc.Tracer tracer = new xmlrpc.Tracer();
            tracer.Attach(trac);

            //call a method just to get exception here is there is a problem. Then no tests will run.
            object result = trac.getAPIVersion();
        }
Beispiel #3
0
        public static void Init(TestContext context)
        {
            ServicePointManager.ServerCertificateValidationCallback += delegate(object sender, X509Certificate cert, X509Chain chain, System.Net.Security.SslPolicyErrors error)
            {
                // just accept any ssl connection for the unit tests
                return true;
            };

            //List<ServerDetails> servers = ServerDetails.LoadAll();

            SetAllowUnsafeHeaderParsing();
            //trac = TracCommon.GetTrac(servers[1]); // get the first server from the registry
            trac = TracCommon.GetTrac(new ServerDetails("http://tracexplorer.devjavu.com/", "*****@*****.**", "testing"));

            xmlrpc.Tracer tracer = new xmlrpc.Tracer();
            tracer.Attach(trac);

            //call a method just to get exception here is there is a problem. Then no tests will run.
            object result = trac.getAPIVersion();
        }