public void TryConvertObjectToStringRequiredObjectInParameter()
        {
            object value = new object();
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_requiredObjectInParameter);

            Assert.That(converter.TryConvertObjectToString(value), Is.EqualTo(value));
        }
        public void ConvertObjectToStringRequiredInt32InParameter()
        {
            int value = 1;
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_requiredInt32InParameter);

            Assert.That(converter.ConvertObjectToString(value), Is.EqualTo(value.ToString()));
        }
        public void ConvertObjectToStringStringInParameter()
        {
            string value = "Hello World!";
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_stringInParameter);

            Assert.That(converter.ConvertObjectToString(value), Is.EqualTo(value));
        }
        public void TryConvertObjectToStringStringInParameterWithEmptyString()
        {
            string value = string.Empty;
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_stringInParameter);

            Assert.That(converter.TryConvertObjectToString(value), Is.EqualTo(value));
        }
        public void ConvertVarRefToStringVarRefInt32InParameterWithNoCallerParameters()
        {
            WxeVariableReference      varRef    = new WxeVariableReference(c_param);
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_int32InParameter);

            Assert.That(converter.ConvertVarRefToString(varRef, null), Is.Null);
        }
        public void ConvertVarRefToStringRequiredVarRefInParameterWithNoCallerParameters()
        {
            WxeVariableReference      varRef    = new WxeVariableReference(c_param);
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_requiredInt32InParameter);

            converter.ConvertVarRefToString(varRef, null);
        }
        public void ConvertVarRefToStringVarRefInParameterWithVarRef()
        {
            WxeVariableReference value  = new WxeVariableReference(c_param);
            WxeVariableReference varRef = new WxeVariableReference(c_param);

            _callerParameters.Add(c_param, value);
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_int32InParameter);

            Assert.That(converter.ConvertVarRefToString(varRef, _callerParameters), Is.Null);
        }
        public void ConvertObjectToStringVarRefInt32InParameter()
        {
            int value = 1;
            WxeVariableReference varRef = new WxeVariableReference(c_param);

            _callerParameters.Add(c_param, value);
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_int32InParameter);

            Assert.That(converter.ConvertVarRefToString(varRef, _callerParameters), Is.EqualTo(value.ToString()));
        }
        public void ConvertVarRefToStringRequiredVarRefInParameterWithVarRef()
        {
            WxeVariableReference value  = new WxeVariableReference(c_param);
            WxeVariableReference varRef = new WxeVariableReference(c_param);

            _callerParameters.Add(c_param, value);
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_requiredInt32InParameter);

            converter.ConvertVarRefToString(varRef, _callerParameters);
        }
        public void ConvertObjectToStringRequiredInt32InParameterWithNull()
        {
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_requiredInt32InParameter);

            Assert.That(converter.ConvertObjectToString(null), Is.EqualTo(string.Empty));
        }
        public void ConvertObjectToStringStringInParameterWithNullValue()
        {
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_stringInParameter);

            Assert.That(converter.ConvertObjectToString(null), Is.EqualTo(null));
        }
        public void TryConvertObjectToStringRequiredNaInt32InParameter()
        {
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_requiredNaInt32InParameter);

            Assert.That(converter.TryConvertObjectToString(1), Is.EqualTo(1.ToString()));
        }
        public void CheckForRequiredOutParameter()
        {
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_requiredOutParameter);

            converter.CheckForRequiredOutParameter();
        }
        public void ConvertObjectToStringInt32InParameter()
        {
            WxeParameterConverterMock converter = new WxeParameterConverterMock(_int32InParameter);

            Assert.That(converter.ConvertObjectToString(1), Is.EqualTo(1.ToString()));
        }