public void TemplateTest() { EmptyTemplate template = new EmptyTemplate(); Assert.AreEqual("Empty Template", template.Name); Assert.AreEqual("An empty solution.", template.Description); Assert.AreEqual("Common", template.Category); }
public void NewDocumentTest() { EmptyTemplate template = new EmptyTemplate(); Assert.IsTrue(template.CanNewSolution()); SolutionDocument document = template.NewSolution(Path.Combine( Environment.CurrentDirectory, "NewSolution", "NewSolution.fmsln")); Assert.IsTrue(File.Exists(Path.Combine( Environment.CurrentDirectory, "NewSolution", "NewSolution.fmsln"))); Assert.IsNotNull(document); }