public void NewWithParameter() { NewWriter writer = new NewWriter(); writer.Write(new NewTemplate(Code.Type("type"), Code.Local("parameter")), this.output); Assert.AreEqual("new type(parameter)", this.output.ToString()); }
public void NewWriter() { NewWriter writer = new NewWriter(); writer.Write(new NewTemplate(Code.Type("type")), this.output); Assert.AreEqual("new type()", this.output.ToString()); }