コード例 #1
0
        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());
        }
コード例 #2
0
        public void NewWriter()
        {
            NewWriter writer = new NewWriter();

            writer.Write(new NewTemplate(Code.Type("type")), this.output);
            Assert.AreEqual("new type()", this.output.ToString());
        }