コード例 #1
0
        public void ReturnsFalseWhenTheProcessorHasNotBeenAdded()
        {
            using var target = new AutomationRuntime();
            var result = target.Remove(processor.Object);

            Assert.False(result);
        }
コード例 #2
0
        public void ReturnsTrueWhenTheProcessorHasBeenRemoved()
        {
            using var target = new AutomationRuntime();
            target.Add(processor.Object);

            var result = target.Remove(processor.Object);

            Assert.True(result);
        }
コード例 #3
0
 public void ThrowsAnExceptionIfTheProcessorIsNullWhenRemoved()
 {
     using var target = new AutomationRuntime();
     Assert.Throws <ArgumentNullException>(() => target.Remove(null));
 }