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

            pipeline.Start();

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

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

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

            pipeline.Start();

            await pipeline.Stop();

            Assert.IsFalse(pipeline.IsRunning);
        }