示例#1
0
        public void String()
        {
            var sut   = CreateSut();
            var sysNs = new NamespaceDeclaration("clr-namespace:System;assembly=mscorlib", "sys");

            Assert.Equal(source.GetString(sysNs), sut.Parse(File.LoadAsString(@"Xaml\Dummy\String.xaml")));
        }
示例#2
0
        public void String()
        {
            var sut   = CreateSut();
            var sysNs = new NamespaceDeclaration("clr-namespace:System;assembly=mscorlib", "sys");

            Assert.Equal(source.GetString(sysNs).ToList(), sut.Parse(Dummy.String).ToList());
        }
示例#3
0
        public void String()
        {
            var sysNs = new NamespaceDeclaration("clr-namespace:System;assembly=mscorlib", "sys");
            var input = protoResources.GetString(sysNs);

            var expectedInstructions = source.GetString(sysNs);

            var actualNodes = sut.Parse(input);
            var xamlNodes   = actualNodes.ToList();

            Assert.Equal(expectedInstructions.ToList(), xamlNodes);
        }