public void ValidateFromParsable() { object obj = new AggregateNumbers(); Type parseType = typeof(AggregateNumbers); bool suppressDefaults = true; ConstructorArguments ctorArgs = ConstructorArguments.FromParsable(obj, parseType, suppressDefaults); Assert.IsNotNull(ctorArgs); }
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")); }
public override string ToString() { string name = ConstructorArguments.FromParsable(this).ToString(); return(name); }