public void FromMessageLongTest() { long longParam = 0; Assert.That(ParameterConverter.FromMessage(message, typeof(long), out param, out errorMsg), Is.False); Assert.That(ParameterConverter.Int64FromMessage(message, ref longParam, ref errorMsg), Is.False); message.Int64Param = -42000000000; Assert.That(ParameterConverter.FromMessage(message, typeof(long), out param, out errorMsg), Is.True); Assert.That(param, Is.EqualTo(-42000000000)); Assert.That(ParameterConverter.Int64FromMessage(message, ref longParam, ref errorMsg), Is.True); Assert.That(longParam, Is.EqualTo(-42000000000)); }