public void Can_GetMessage_FromProperCode()
        {
            // arrange
            uint   code            = 6;
            string expectedMessage = "The service has not been started";

            // act
            var actualMessage = _messages.GetMessage(code);

            // assert
            actualMessage.Should().Be(expectedMessage);
        }
Пример #2
0
 public void ServiceException(uint exceptionCode)
 {
     throw new InvalidOperationException("Error occured Reason: " + _messages.GetMessage(exceptionCode));
 }