MathProject() public static méthode

public static MathProject ( ) : Project
Résultat StoryTeller.Workspace.Project
Exemple #1
0
        public void write_some_html()
        {
            Project     project = DataMother.MathProject();
            ITestRunner runner  = project.LocalRunner();

            Test test = project.LoadTests().GetAllTests().First();

            runner.RunTest(test);

            test.OpenResultsInBrowser();
        }
Exemple #2
0
        public void get_full_results_history_smoke_test()
        {
            var h = DataMother.MathProject().LoadTests();

            h.GetAllTests().Each(x => x.LastResult = new TestResult());

            var results = h.GetFullResults();

            h.GetAllTests().Each(x =>
            {
                results[x].ShouldBeTheSameAs(x.LastResult);
            });
        }
Exemple #3
0
        public void verify_child_parent_relationships_smoke_test()
        {
            var h = DataMother.MathProject().LoadTests();

            h.GetAllTests().Each(x =>
            {
                Assert.IsNotNull(x.Parent);
                Assert.IsTrue(x.SuiteName.Contains(x.Parent.Name));
                if (x.Parent.Parent != null)
                {
                    Assert.IsTrue(x.SuiteName.Contains("/"));
                    Assert.IsTrue(x.SuiteName.Contains(x.Parent.Parent.Name));
                }
            });
        }