Skip to content

Commit

Permalink
Remove WPF Tests. (#70)
Browse files Browse the repository at this point in the history
* Remove WPF Tests.

* Update poshtools.version.txt

* Fix tests.
  • Loading branch information
adamdriscoll authored Jul 11, 2024
1 parent a322e41 commit 61d111f
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 163 deletions.
23 changes: 2 additions & 21 deletions PowerShellTools.Test/FormsDesigner/CodeDomAstVisitor.Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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);
}
Expand Down
7 changes: 0 additions & 7 deletions PowerShellTools.Test/PowerShellTools.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@
<Compile Include="TestAdapter\PowerShellTestExecutor.Test.cs" />
<Compile Include="TestUtilities.cs" />
<Compile Include="VsxHostTest.cs" />
<Compile Include="WpfSupport\WpfEventBindingProviderTest.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Common\Common.csproj">
Expand Down Expand Up @@ -192,7 +191,6 @@
<None Include="Ugly.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<EmbeddedResource Include="WpfSupport\Resources\PowerShell\BlankWpfCodeBehind.ps1" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.PowerShell.SDK">
Expand Down Expand Up @@ -229,11 +227,6 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="WpfSupport\Resources\Xaml\XamlWithNamedButton.xaml">
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
<ItemGroup>
Expand Down

This file was deleted.

This file was deleted.

96 changes: 0 additions & 96 deletions PowerShellTools.Test/WpfSupport/WpfEventBindingProviderTest.cs

This file was deleted.

2 changes: 1 addition & 1 deletion PowerShellTools/PowerShellTools.15.0.imagemanifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ImageManifest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/VisualStudio/ImageManifestSchema/2014">
<Symbols>
<!--;v1.2.3.4;32cd18849a3a99f8-->
<String Name="Resources" Value="/PowerShellTools.2024.3.0;Component/Resources" />
<String Name="Resources" Value="/PowerShellTools.2024.7.0;Component/Resources" />
<Guid Name="ProjectGuid" Value="{072A9D46-0C24-4CFA-990A-25D7E12271F5}" />
<ID Name="ProjectIcon" Value="1" />
<ID Name="ScriptIcon" Value="2" />
Expand Down
2 changes: 1 addition & 1 deletion PowerShellToolsPro.Cmdlets/PowerShellProTools.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ModuleVersion = '2024.7.0'
# CompatiblePSEditions = @()

# ID used to uniquely identify this module
GUID = '4b665630-ddda-40ab-9b3b-818af8b586c5'
GUID = '4b0c2845-3560-4dc6-b3d7-d56787a77d07'

# Author of this module
Author = 'Ironman Software, LLC'
Expand Down
24 changes: 12 additions & 12 deletions PowerShellToolsPro.Cmdlets/PowerShellProTools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ function Expand-Object {
# 8GehghbYMIIW1AYKKwYBBAGCNwMDATGCFsQwghbABgkqhkiG9w0BBwKgghaxMIIW
# rQIBAzENMAsGCWCGSAFlAwQCATCB8wYLKoZIhvcNAQkQAQSggeMEgeAwgd0CAQEG
# CysGAQQBoDICAwECMDEwDQYJYIZIAWUDBAIBBQAEICkx1mva4klxbeW4WP91UJmg
# DWt4BcXyh6cRKmeE4SEcAhRakVydJrDMdsQTdTzXjdBmz+7boBgPMjAyNDA3MTAx
# NDM1MjVaMAMCAQECCQCyp0TJR9dMy6BhpF8wXTELMAkGA1UEBhMCQkUxGTAXBgNV
# DWt4BcXyh6cRKmeE4SEcAhRPcCPJtPPlFI0H0eMPfvjVH8YrbxgPMjAyNDA3MTAx
# NTE0NTNaMAMCAQECCQDUzjwBUOBts6BhpF8wXTELMAkGA1UEBhMCQkUxGTAXBgNV
# BAoMEEdsb2JhbFNpZ24gbnYtc2ExMzAxBgNVBAMMKkdsb2JhbHNpZ24gVFNBIGZv
# ciBDb2RlU2lnbjEgLSBSNiAtIDIwMjMxMaCCElQwggWDMIIDa6ADAgECAg5F5rsD
# gzPDhWVI5v9FUTANBgkqhkiG9w0BAQwFADBMMSAwHgYDVQQLExdHbG9iYWxTaWdu
Expand Down Expand Up @@ -257,17 +257,17 @@ function Expand-Object {
# bWVzdGFtcGluZyBDQSAtIFNIQTM4NCAtIEc0AhABm+reyE1rj/dsOp8uASQWMAsG
# CWCGSAFlAwQCAaCCAS0wGgYJKoZIhvcNAQkDMQ0GCyqGSIb3DQEJEAEEMCsGCSqG
# SIb3DQEJNDEeMBwwCwYJYIZIAWUDBAIBo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w4HEZUlG8I/Dvqc7ShHJ26rmr8Z
# WTEaHVkBB14/2GgjhNS+32H9kHlnhTATXPef/EAnvrJJOn9pe/8GfPwDr7WDLpBB
# nwydTpgN3QIOjCDOIjMVg2GpnxbII25Wm7puWQFxEarLNyucpy+ON2jbGNskxvvI
# 0W2o0RJ6GBjow53pdh6G+2FfJVstusoObP1vLWrfam/atYp9ZJP4LKDkRe7AU23B
# SdoQNUxh9z590vmd7Qrb4wdyVyhgKgtE9Mj6ALUy6gveBrP0DDI9S6KqIJ1B3vOQ
# mVl91REMHEt/Rcn+8I1qGkfmxzbJ0C7GiPB3GOEBklVII7sN08z43GIniiMjTnjY
# 5G4eRcnqV86N5OJV9eXXY9DZhMjedZeT2gKKnDGIG54S9oC6qRzdWWCSsaeSjRRM
# OnyEa0+g8/ho5BBIs4gX2AngfZUzFUoe8DTtf09bFX2JTxxVV02x+SSJ3SqIsA==
# SIG # End signature block
2 changes: 1 addition & 1 deletion poshtools.version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.3.0
2024.7.0

0 comments on commit 61d111f

Please sign in to comment.