public void CorrectOverloadedByInput() { OtherMethods myMethods = new OtherMethods(); int[] myArray = { 34, 45, 71, 66, 90, 33 }; var result = myMethods.OutputEqualsInput("Here is a string"); var result2 = myMethods.OutputEqualsInput(436); var result3 = myMethods.OutputEqualsInput(myArray); Assert.True(result.GetType() == typeof(string)); // An overloaded method returns the expected result depending on the parameter type given Assert.True(result2.GetType() == typeof(int)); Assert.True(result3.GetType() == typeof(int[])); }