示例#1
0
        public void get_path_if_has_suite_parent()
        {
            var top   = new Suite("top");
            var child = new Suite("child");

            top.AddSuite(child);

            child.GetPath().Locator.ShouldEqual("top/child");
        }
示例#2
0
        public void get_path_if_no_parent()
        {
            var suite = new Suite("suite1");

            suite.GetPath().Locator.ShouldEqual("suite1");
        }
示例#3
0
 public void get_path_if_no_parent()
 {
     var suite = new Suite("suite1");
     suite.GetPath().Locator.ShouldEqual("suite1");
 }
示例#4
0
        public void get_path_if_has_suite_parent()
        {
            var top = new Suite("top");
            var child = new Suite("child");
            top.AddSuite(child);

            child.GetPath().Locator.ShouldEqual("top/child");
        }