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

Run() public method

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

            // do secondary test.
            switch (testcase.Name)
            {
                case "KeepAlive":
                {
                    return DoKeepAliveTest();
                }

                default:
                case "Reconnect":
                {
                    return DoReconnectTest();    
                }
            }
        }        
        #endregion