Ejemplo n.º 1
0
        public void DifferentNamespacesAndMoreThanOneProperty()
        {
            var expectedInstructions = source.DifferentNamespacesAndMoreThanOneProperty;

            var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\DifferentNamespacesAndMoreThanOneProperty.xaml"));

            Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList());
        }
Ejemplo n.º 2
0
        public void CollectionWithMoreThanOneItem()
        {
            var expectedInstructions = source.CollectionWithMoreThanOneItem;

            var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\CollectionWithMoreThanOneItem.xaml"));

            Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList());
        }
Ejemplo n.º 3
0
        public void InstanceWithStringPropertyAndNsDeclaration()
        {
            var expectedInstructions = source.ObjectWithMember;

            var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\StringProperty.xaml"));

            Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList());
        }
Ejemplo n.º 4
0
        public void InstanceWithChild()
        {
            var expectedInstructions = source.InstanceWithChild;

            var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\InstanceWithChild.xaml"));

            Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList());
        }
Ejemplo n.º 5
0
        public void KeyDirective()
        {
            var expectedInstructions = source.KeyDirective2;

            var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\KeyDirective.xaml"));

            Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList());
        }
Ejemplo n.º 6
0
        public void RootNamespace()
        {
            var expectedInstructions = source.SingleInstance;

            var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\RootNamespace.xaml"));

            Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList());
        }
Ejemplo n.º 7
0
        public void ContentPropertyForSingleProperty()
        {
            var expectedInstructions = source.ContentPropertyForSingleProperty;

            var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\ContentPropertyForSingleMember.xaml"));

            Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList());
        }
Ejemplo n.º 8
0
        public void ContentPropertyForCollectionMoreThanOneElement()
        {
            var expectedInstructions = source.ContentPropertyForCollectionMoreThanOneElement;

            var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\ContentPropertyForCollectionMoreThanOneElement.xaml"));

            Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList());
        }
Ejemplo n.º 9
0
        public void SimpleExtensionWithOneAssignment()
        {
            var expectedInstructions = source.SimpleExtensionWithOneAssignment;

            var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\SimpleExtensionWithOneAssignment.xaml"));

            Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList());
        }
Ejemplo n.º 10
0
        public void CollectionWithClosedItemAndProperty()
        {
            var expectedInstructions = source.CollectionWithOneItemAndAMember;

            var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\CollectionWithClosedItemAndProperty.xaml"));

            Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList());
        }
Ejemplo n.º 11
0
        public void CollapsedTagWithProperty()
        {
            var expectedInstructions = source.CollapsedTagWithProperty;

            var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\CollapsedTagWithProperty.xaml"));

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