public void FromMessageBoolTest() { bool boolParam = false; Assert.That(ParameterConverter.FromMessage(message, typeof(bool), out param, out errorMsg), Is.False); Assert.That(ParameterConverter.BoolFromMessage(message, ref boolParam, ref errorMsg), Is.False); message.BoolParam = true; Assert.That(ParameterConverter.FromMessage(message, typeof(bool), out param, out errorMsg), Is.True); Assert.That(param, Is.True); Assert.That(ParameterConverter.BoolFromMessage(message, ref boolParam, ref errorMsg), Is.True); Assert.That(boolParam, Is.True); }