public void ValidateToStringWithParams() { object parsableObject = new AggregateNumbers(); bool suppressDefaults = false; string str = ConstructorArguments.ToString(parsableObject, suppressDefaults); Assert.IsTrue(str.Contains("AggregateNumbers")); Assert.IsTrue(str.Contains("Cleanup")); Assert.IsTrue(str.Contains("ResultFile")); Assert.IsTrue(str.Contains("InputFile")); }
public void ValidateToString() { object obj = new AggregateNumbers(); Type parseType = typeof(AggregateNumbers); bool suppressDefaults = true; ConstructorArguments ctorArgs = ConstructorArguments.FromParsable(obj, parseType, suppressDefaults); string str = ctorArgs.ToString(); Assert.IsTrue(str.Contains("ResultFile")); Assert.IsTrue(str.Contains("InputFile")); }