예제 #1
0
        public void AllAliasesMustBeResolved()
        {
            YamlStream original = new YamlStream();
            original.Load(YamlFile("invalid-reference.yaml"));

            var visitor = new AliasFindingVisitor();

            try
            {
                original.Accept(visitor);
            }
            catch (NotSupportedException)
            {
                foreach (var node in visitor.CurrentPath)
                {
                    TestContext.WriteLine(node.ToString());
                }

                Assert.Fail();
            }
        }
예제 #2
0
        public void AllAliasesMustBeResolved()
        {
            YamlStream original = new YamlStream();

            original.Load(YamlFile("invalid-reference.yaml"));

            var visitor = new AliasFindingVisitor();

            try
            {
                original.Accept(visitor);
            }
            catch (NotSupportedException)
            {
                foreach (var node in visitor.CurrentPath)
                {
                    TestContext.WriteLine(node.ToString());
                }

                Assert.Fail();
            }
        }