public void Create() { Utilities.CodeGen.DefaultParser Value = new Utilities.CodeGen.DefaultParser(); Utilities.CodeGen.DefaultTemplate Template = new Utilities.CodeGen.DefaultTemplate("public class @ClassName\n{\n}"); Utilities.CodeGen.DefaultInput Input = new Utilities.CodeGen.DefaultInput(); Input.Values.Add("ClassName","MyClass"); string Output=Value.Transform(Template, Input); Assert.NotNull(Output); Assert.Equal("public class MyClass\n{\n}", Output); }
public void Create() { Utilities.CodeGen.DefaultParser Value = new Utilities.CodeGen.DefaultParser(); Utilities.CodeGen.DefaultTemplate Template = new Utilities.CodeGen.DefaultTemplate("public class @ClassName\n{\n}"); Utilities.CodeGen.DefaultInput Input = new Utilities.CodeGen.DefaultInput(); Input.Values.Add("ClassName", "MyClass"); string Output = Value.Transform(Template, Input); Assert.NotNull(Output); Assert.Equal("public class MyClass\n{\n}", Output); }
public void Create() { Utilities.CodeGen.DefaultInput Value = new Utilities.CodeGen.DefaultInput(); Value.Values.Add("ClassName", "MyClass"); Assert.Equal("MyClass", Value.Values["ClassName"]); }
public void Create() { Utilities.CodeGen.DefaultInput Value = new Utilities.CodeGen.DefaultInput(); Value.Values.Add("ClassName","MyClass"); Assert.Equal("MyClass", Value.Values["ClassName"]); }