Example #1
0
        public long ReturnParameterValueAndSetParameterToDefaultValue_ReturnsLong(long longValue)
        {
            long result = MethodsWithRefParameters.ReturnParameterValueAndSetParameterToDefaultValue(longValue: ref longValue);

            Assert.AreEqual(default(long), longValue);

            return(result);
        }
Example #2
0
        public int ReturnParameterValueAndSetParameterToDefaultValue_ReturnsInt(int intValue)
        {
            int result = MethodsWithRefParameters.ReturnParameterValueAndSetParameterToDefaultValue(intValue: ref intValue);

            Assert.AreEqual(default(int), intValue);

            return(result);
        }
Example #3
0
        public char ReturnParameterValueAndSetParameterToDefaultValue_ReturnsChar(char charValue)
        {
            char result = MethodsWithRefParameters.ReturnParameterValueAndSetParameterToDefaultValue(charValue: ref charValue);

            Assert.AreEqual(default(char), charValue);

            return(result);
        }
Example #4
0
        public float ReturnParameterValueAndSetParameterToDefaultValue_ReturnsFloat(float floatValue)
        {
            float result = MethodsWithRefParameters.ReturnParameterValueAndSetParameterToDefaultValue(floatValue: ref floatValue);

            Assert.AreEqual(default(float), floatValue);

            return(result);
        }
Example #5
0
        public bool ReturnParameterValueAndSetParameterToDefaultValue_ReturnsBoolean(bool boolValue)
        {
            bool result = MethodsWithRefParameters.ReturnParameterValueAndSetParameterToDefaultValue(boolValue: ref boolValue);

            Assert.AreEqual(default(bool), boolValue);

            return(result);
        }