Beispiel #1
0
        public virtual void TestReconnnectUpdate()
        {
            string     nmVersion1 = "nm version 1";
            string     nmVersion2 = "nm version 2";
            RMNodeImpl node       = GetRunningNode(nmVersion1);

            NUnit.Framework.Assert.AreEqual(nmVersion1, node.GetNodeManagerVersion());
            RMNodeImpl reconnectingNode = GetRunningNode(nmVersion2);

            node.Handle(new RMNodeReconnectEvent(node.GetNodeID(), reconnectingNode, null, null
                                                 ));
            NUnit.Framework.Assert.AreEqual(nmVersion2, node.GetNodeManagerVersion());
        }