public void FromMessageIntTest() { int intParam = 0; Assert.That(ParameterConverter.FromMessage(message, typeof(int), out param, out errorMsg), Is.False); Assert.That(ParameterConverter.IntFromMessage(message, ref intParam, ref errorMsg), Is.False); message.IntParam = -42; Assert.That(ParameterConverter.FromMessage(message, typeof(int), out param, out errorMsg), Is.True); Assert.That(param, Is.EqualTo(-42)); Assert.That(ParameterConverter.IntFromMessage(message, ref intParam, ref errorMsg), Is.True); Assert.That(intParam, Is.EqualTo(-42)); }