Пример #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);
        }