Browse Source

add failing test for issue #445

pull/462/head
Siegfried Pammer 12 years ago
parent
commit
505694671c
  1. 19
      ILSpy.BamlDecompiler/Tests/Cases/Issue445.xaml
  2. 1
      ILSpy.BamlDecompiler/Tests/ILSpy.BamlDecompiler.Tests.csproj
  3. 6
      ILSpy.BamlDecompiler/Tests/TestRunner.cs

19
ILSpy.BamlDecompiler/Tests/Cases/Issue445.xaml

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
<UserControl x:Class="BamlTest.UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d">
<UserControl.Resources>
<Style TargetType="Control" x:Key="baseStyle" />
</UserControl.Resources>
<Grid>
<Grid.ContextMenu>
<ContextMenu>
<ContextMenu.Resources>
<Style TargetType="Control" BasedOn="{StaticResource baseStyle}" />
</ContextMenu.Resources>
</ContextMenu>
</Grid.ContextMenu>
</Grid>
</UserControl>

1
ILSpy.BamlDecompiler/Tests/ILSpy.BamlDecompiler.Tests.csproj

@ -135,6 +135,7 @@ @@ -135,6 +135,7 @@
<Page Include="Cases\SimpleNames.xaml" />
<Page Include="Cases\SimplePropertyElement.xaml" />
<Page Include="Cases\Dictionary1.xaml" />
<Page Include="Cases\Issue445.xaml" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
</Project>

6
ILSpy.BamlDecompiler/Tests/TestRunner.cs

@ -79,6 +79,12 @@ namespace ILSpy.BamlDecompiler.Tests @@ -79,6 +79,12 @@ namespace ILSpy.BamlDecompiler.Tests
RunTest("cases/simplepropertyelement");
}
[Test, Ignore]
public void Issue445()
{
RunTest("cases/issue445");
}
#region RunTest
void RunTest(string name)
{

Loading…
Cancel
Save