Renci.SshNet.Tests.SshMessageFactoryTest.CreateShouldThrowSshExceptionWhenMessageDoesNotExist_OutsideOfMessageNumberRange C# (CSharp) Method

CreateShouldThrowSshExceptionWhenMessageDoesNotExist_OutsideOfMessageNumberRange() private method

        public void CreateShouldThrowSshExceptionWhenMessageDoesNotExist_OutsideOfMessageNumberRange()
        {
            const byte messageNumber = 255;

            try
            {
                _sshMessageFactory.Create(messageNumber);
                Assert.Fail();
            }
            catch (SshException ex)
            {
                Assert.IsNull(ex.InnerException);
                Assert.AreEqual(string.Format(CultureInfo.CurrentCulture, "Message type {0} is not supported.", messageNumber), ex.Message);
            }
        }
SshMessageFactoryTest