diff --git a/PowerShellTools.Test/FormsDesigner/CodeDomAstVisitor.Test.cs b/PowerShellTools.Test/FormsDesigner/CodeDomAstVisitor.Test.cs index 54682cb..d4322c9 100644 --- a/PowerShellTools.Test/FormsDesigner/CodeDomAstVisitor.Test.cs +++ b/PowerShellTools.Test/FormsDesigner/CodeDomAstVisitor.Test.cs @@ -8,25 +8,6 @@ namespace PowerShellToolsPro.Test.FormsDesigner { public class CodeDomAstVisitorTest { - [Fact] - public void ShouldParseSapienExport() - { - var codeDomVisitor = new SapienCodeDomAstVisitor(); - - string result; - using (Stream stream = GetType().Assembly.GetManifestResourceStream("PowerShellTools.Test.Assets.form.Export.ps1")) - using (StreamReader reader = new StreamReader(stream)) - { - result = reader.ReadToEnd(); - } - - Token[] tokens; - ParseError[] errors; - var ast = Parser.ParseInput(result, out tokens, out errors); - - var codeDom = codeDomVisitor.Parse(ast) as CodeCompileUnit; - } - [Fact] public void ShouldCreateCorrectResourceNode() { @@ -75,11 +56,11 @@ function InitializeComponent var initialize = codeDom.Namespaces[0].Types[0].Members[1] as CodeMemberMethod; var codeVariableDeclaration = initialize.Statements[0] as CodeVariableDeclarationStatement; - + Assert.Equal("resources", codeVariableDeclaration.Name); var objectCreate = codeVariableDeclaration.InitExpression as CodeObjectCreateExpression; - + Assert.Equal("System.ComponentModel.ComponentResourceManager", objectCreate.CreateType.BaseType); Assert.Equal("MainForm", (objectCreate.Parameters[0] as CodeTypeOfExpression).Type.BaseType); } diff --git a/PowerShellTools.Test/PowerShellTools.Test.csproj b/PowerShellTools.Test/PowerShellTools.Test.csproj index 331d50c..6ac77b1 100644 --- a/PowerShellTools.Test/PowerShellTools.Test.csproj +++ b/PowerShellTools.Test/PowerShellTools.Test.csproj @@ -115,7 +115,6 @@ - @@ -192,7 +191,6 @@ Always - @@ -229,11 +227,6 @@ PreserveNewest - - - Designer - - diff --git a/PowerShellTools.Test/WpfSupport/Resources/PowerShell/BlankWpfCodeBehind.ps1 b/PowerShellTools.Test/WpfSupport/Resources/PowerShell/BlankWpfCodeBehind.ps1 deleted file mode 100644 index 60b9672..0000000 --- a/PowerShellTools.Test/WpfSupport/Resources/PowerShell/BlankWpfCodeBehind.ps1 +++ /dev/null @@ -1,12 +0,0 @@ -[System.Reflection.Assembly]::LoadWithPartialName("PresentationFramework") | Out-Null - -function Import-Xaml { - [xml]$xaml = Get-Content -Path $PSScriptRoot\BlankWpfCodeBehind.xaml - $manager = New-Object System.Xml.XmlNamespaceManager -ArgumentList $xaml.NameTable - $manager.AddNamespace("x", "http://schemas.microsoft.com/winfx/2006/xaml"); - $xamlReader = New-Object System.Xml.XmlNodeReader $xaml - [Windows.Markup.XamlReader]::Load($xamlReader) -} - -$window = Import-Xaml -$window.ShowDialog() \ No newline at end of file diff --git a/PowerShellTools.Test/WpfSupport/Resources/Xaml/XamlWithNamedButton.xaml b/PowerShellTools.Test/WpfSupport/Resources/Xaml/XamlWithNamedButton.xaml deleted file mode 100644 index cc00916..0000000 --- a/PowerShellTools.Test/WpfSupport/Resources/Xaml/XamlWithNamedButton.xaml +++ /dev/null @@ -1,12 +0,0 @@ - - -