Exemplo n.º 1
0
        public async Task DeserializeAndRunProject1()
        {
            string resourceName = "Transmogrify.Tests.Project001.json";
            var    project      = new SerializationTests().DeserializeProject(resourceName);

            await RunProject(project, sourceText);
        }
Exemplo n.º 2
0
        public async Task DeserializeAndRunProject2()
        {
            string resourceName = "Transmogrify.Tests.Project002.json";
            var    project      = new SerializationTests().DeserializeProject(resourceName);

            var expectedText = string.Join(Environment.NewLine,
                                           sourceText.Split(Environment.NewLine)
                                           .Select(l => l.Trim())
                                           );

            await RunProject(project, expectedText);
        }