public void Start_node() { using (var loggerFactory = CreateLoggerFactory()) { var cfg = new NodeOptions("Nodo 1", "1234", 1, 2000, "http://localhost:8000"); var node = new Node(cfg, new BlockBuilder(), loggerFactory, new PeerChannelInProc()); try { node.Start(); int count = 20; while (node.State != NodeState.Running && count-- > 0) { Thread.Sleep(500); } Assert.AreEqual(NodeState.Running, node.State); } finally { node.Stop(); int count = 20; while (node.State != NodeState.Stoped && count-- > 0) { Thread.Sleep(500); } } } }