Example #1
0
        public void Kill_throws_expected_exception_if_process_not_started()
        {
            // Arrange
            var instance = new ProcessWrap();

            // Act
            instance.Kill();
        }
Example #2
0
        public void Kill_throws_expected_exception_if_process_not_started()
        {
            // Arrange
            var instance = new ProcessWrap();

            // Act
            var ex = Assert.Throws <System.InvalidOperationException>(() => instance.Kill());

            Assert.That(ex.Message, Is.EqualTo("No process is associated with this object."));
        }