예제 #1
0
        public void Pipeline_Start_IsRunning()
        {
            var pipeline = new TestPipeline();

            pipeline.Start();

            Assert.IsTrue(pipeline.IsRunning);
        }
예제 #2
0
        public async Task Pipeline_Dispose_StopsProcessing()
        {
            var pipeline = new TestPipeline();

            pipeline.Start();
            pipeline.Dispose();

            Assert.IsFalse(pipeline.IsRunning);
        }
예제 #3
0
        public async Task Pipeline_Stop_StopsRunning()
        {
            var pipeline = new TestPipeline();

            pipeline.Start();

            await pipeline.Stop();

            Assert.IsFalse(pipeline.IsRunning);
        }