Browse Source

add simple unit test for ResourceDictionary

pull/234/merge
Siegfried Pammer 14 years ago
parent
commit
9af1c54fe2
  1. 2
      ILSpy.BamlDecompiler/Tests/Cases/Simple.xaml
  2. 1
      ILSpy.BamlDecompiler/Tests/Cases/SimpleDictionary.xaml
  3. 1
      ILSpy.BamlDecompiler/Tests/ILSpy.BamlDecompiler.Tests.csproj
  4. 6
      ILSpy.BamlDecompiler/Tests/TestRunner.cs

2
ILSpy.BamlDecompiler/Tests/Cases/Simple.xaml

@ -1,3 +1,3 @@ @@ -1,3 +1,3 @@
<Window x:Class="ILSpy.BamlDecompiler.Tests.Cases.Simple" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="ILSpy.BamlDecompiler.Tests.Cases" Height="300" Width="300">
<Window x:Class="ILSpy.BamlDecompiler.Tests.Cases.Simple" Title="ILSpy.BamlDecompiler.Tests.Cases" Height="300" Width="300" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid />
</Window>

1
ILSpy.BamlDecompiler/Tests/Cases/SimpleDictionary.xaml

@ -0,0 +1 @@ @@ -0,0 +1 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"></ResourceDictionary>

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

@ -106,6 +106,7 @@ @@ -106,6 +106,7 @@
<Page Include="Cases\Simple.xaml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Page>
<Page Include="Cases\SimpleDictionary.xaml" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
</Project>

6
ILSpy.BamlDecompiler/Tests/TestRunner.cs

@ -25,6 +25,12 @@ namespace ILSpy.BamlDecompiler.Tests @@ -25,6 +25,12 @@ namespace ILSpy.BamlDecompiler.Tests
RunTest("cases/simple");
}
[Test]
public void SimpleDictionary()
{
RunTest("cases/simpledictionary");
}
void RunTest(string name)
{
string asmPath = typeof(TestRunner).Assembly.Location;

Loading…
Cancel
Save