public void DifferentNamespacesAndMoreThanOneProperty() { var expectedInstructions = source.DifferentNamespacesAndMoreThanOneProperty; var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\DifferentNamespacesAndMoreThanOneProperty.xaml")); Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList()); }
public void CollectionWithMoreThanOneItem() { var expectedInstructions = source.CollectionWithMoreThanOneItem; var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\CollectionWithMoreThanOneItem.xaml")); Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList()); }
public void InstanceWithStringPropertyAndNsDeclaration() { var expectedInstructions = source.ObjectWithMember; var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\StringProperty.xaml")); Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList()); }
public void InstanceWithChild() { var expectedInstructions = source.InstanceWithChild; var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\InstanceWithChild.xaml")); Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList()); }
public void KeyDirective() { var expectedInstructions = source.KeyDirective2; var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\KeyDirective.xaml")); Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList()); }
public void RootNamespace() { var expectedInstructions = source.SingleInstance; var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\RootNamespace.xaml")); Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList()); }
public void ContentPropertyForSingleProperty() { var expectedInstructions = source.ContentPropertyForSingleProperty; var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\ContentPropertyForSingleMember.xaml")); Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList()); }
public void ContentPropertyForCollectionMoreThanOneElement() { var expectedInstructions = source.ContentPropertyForCollectionMoreThanOneElement; var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\ContentPropertyForCollectionMoreThanOneElement.xaml")); Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList()); }
public void SimpleExtensionWithOneAssignment() { var expectedInstructions = source.SimpleExtensionWithOneAssignment; var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\SimpleExtensionWithOneAssignment.xaml")); Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList()); }
public void CollectionWithClosedItemAndProperty() { var expectedInstructions = source.CollectionWithOneItemAndAMember; var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\CollectionWithClosedItemAndProperty.xaml")); Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList()); }
public void CollapsedTagWithProperty() { var expectedInstructions = source.CollapsedTagWithProperty; var actualNodes = ExtractNodesFromPullParser(File.LoadAsString(@"Xaml\Dummy\CollapsedTagWithProperty.xaml")); Assert.Equal(expectedInstructions.ToList(), actualNodes.ToList()); }