Esempio n. 1
0
        public void GetExitCodeForException_ReturnsExitCode_4_ForNoBuildStepException()
        {
            // Arrange
            var expected = 4;

            // Act
            var actual = ProcessExitCodeHelper.GetExitCodeForException(new NoBuildStepException("test"));

            // Assert
            Assert.Equal(expected, actual);
        }
Esempio n. 2
0
        public void GetExitCodeForException_ReturnsExitCode_3_ForUnsupportedVersionException()
        {
            // Arrange
            var expected = 3;

            // Act
            var actual = ProcessExitCodeHelper.GetExitCodeForException(new UnsupportedVersionException("test"));

            // Assert
            Assert.Equal(expected, actual);
        }