public string Create(Class c)
        {
            string code = $@"
            using System;
            using NUnit.Framework;

            [TestFixture]
            public class {c.Name}Test
            {{
            [TestFixtureSetUp]
            public void Init()
            {{
            }}

            [TestFixtureTearDown]
            public void Dispose()
            {{
            }}

            {methods(c.Methods)}
            }}";
            return code.TrimStart();
        }
Exemple #2
0
 public string Create(Class c, Language l)
 {
     return CodeProvider.CreateProvider(l).Create(c);
 }