public void Returns_NewModel_Generated() { var file = File.ReadAllText(Path.Combine(Environment.CurrentDirectory, "files-tst", "simple.txt")); var testFunction = new Returns(); var textReader = new TextReader(); var formalizedText = textReader.FormalizeText(file); var dock = textReader.GetBlocks(formalizedText); var generated = testFunction.Generate(dock.Blocks.Last().Lines[1].Words[4]); Assert.AreEqual(".Returns(() => new ContractModel())", generated); }