Browse Source

Reenabled BAML decompiler tests

pull/728/merge
Siegfried Pammer 9 years ago
parent
commit
d1fbe5815a
  1. 16
      ILSpy.BamlDecompiler/Tests/BamlTestRunner.cs
  2. 2
      ILSpy.BamlDecompiler/Tests/ILSpy.BamlDecompiler.Tests.csproj

16
ILSpy.BamlDecompiler/Tests/TestRunner.cs → ILSpy.BamlDecompiler/Tests/BamlTestRunner.cs

@ -1,12 +1,20 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections;
using System.IO;
using System.Linq;
using System.Resources;
using System.Xml.Linq;
using ICSharpCode.Decompiler.Tests.Helpers;
using Mono.Cecil;
using NUnit.Framework;
namespace ILSpy.BamlDecompiler.Tests namespace ILSpy.BamlDecompiler.Tests
{ {
/*
[TestFixture] [TestFixture]
public class TestRunner public class BamlTestRunner
{ {
[Test] [Test]
public void Simple() public void Simple()
@ -90,7 +98,7 @@ namespace ILSpy.BamlDecompiler.Tests
#region RunTest #region RunTest
void RunTest(string name) void RunTest(string name)
{ {
RunTest(name, typeof(TestRunner).Assembly.Location, Path.Combine("..\\..\\Tests", name + ".xaml")); RunTest(name, typeof(BamlTestRunner).Assembly.Location, Path.Combine("..\\..\\Tests", name + ".xaml"));
} }
void RunTest(string name, string asmPath, string sourcePath) void RunTest(string name, string asmPath, string sourcePath)
@ -131,5 +139,5 @@ namespace ILSpy.BamlDecompiler.Tests
return null; return null;
} }
#endregion #endregion
}*/ }
} }

2
ILSpy.BamlDecompiler/Tests/ILSpy.BamlDecompiler.Tests.csproj

@ -70,6 +70,7 @@
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="BamlTestRunner.cs" />
<Compile Include="Cases\AttachedEvent.xaml.cs"> <Compile Include="Cases\AttachedEvent.xaml.cs">
<DependentUpon>AttachedEvent.xaml</DependentUpon> <DependentUpon>AttachedEvent.xaml</DependentUpon>
<SubType>Code</SubType> <SubType>Code</SubType>
@ -93,7 +94,6 @@
</Compile> </Compile>
<Compile Include="Mocks\AvalonDock.cs" /> <Compile Include="Mocks\AvalonDock.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TestRunner.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\cecil\Mono.Cecil.csproj"> <ProjectReference Include="..\..\cecil\Mono.Cecil.csproj">

Loading…
Cancel
Save