Opc.Ua.ServerTest.TranslatePathTest.Run C# (CSharp) Method

Run() public method

Runs the test.
public Run ( ServerTestCase testcase, int iteration ) : bool
testcase ServerTestCase
iteration int
return bool
        public override bool Run(ServerTestCase testcase, int iteration)
        {
            Iteration = iteration;

            // need fetch nodes used for the test if not already available.
            if (AvailableNodes.Count == 0)
            {
                if (!GetNodesInHierarchy())
                {
                    return false;
                }
            }

            // do secondary test.
            switch (testcase.Name)
            {
                case "MultiHop":
                {
                    return DoMultiHopTest(3);
                }

                default:
                {
                    return DoMultiHopTest(0);
                }
            }
        }        
        #endregion