Пример #1
0
        public void get_path_without_parent()
        {
            var structure = new StubGrammarStructure
            {
                Name = "grammar1"
            };

            structure.GetPath().Locator.ShouldEqual("grammar1");
        }
Пример #2
0
        public void get_path_with_parent()
        {
            var structure = new StubGrammarStructure
            {
                Name   = "grammar1",
                Parent = new FixtureGraph("fixture1")
            };

            structure.GetPath().Locator.ShouldEqual("fixture1/grammar1");
        }
Пример #3
0
 public void get_path_with_parent()
 {
     var structure = new StubGrammarStructure
     {
         Name = "grammar1",
         Parent = new FixtureGraph("fixture1")
     };
     structure.GetPath().Locator.ShouldEqual("fixture1/grammar1");
 }
Пример #4
0
 public void get_path_without_parent()
 {
     var structure = new StubGrammarStructure
     {
         Name = "grammar1"
     };
     structure.GetPath().Locator.ShouldEqual("grammar1");
 }