Пример #1
0
        public void LifecycleMethods_ShouldControlGraphLifeCycle()
        {
            var graph = new CalculatorGraph(validConfigText);

            Assert.True(graph.StartRun().ok);
            Assert.False(graph.GraphInputStreamsClosed());

            Assert.True(graph.WaitUntilIdle().ok);
            Assert.True(graph.CloseAllPacketSources().ok);
            Assert.True(graph.GraphInputStreamsClosed());
            Assert.True(graph.WaitUntilDone().ok);
            Assert.False(graph.HasError());
        }