Browse Source

Test case for formatting simple properties as elements when following other elements.

pull/402/head
Vaughan Woodzell 12 years ago
parent
commit
c0c47244d8
  1. 6
      ILSpy.BamlDecompiler/Tests/Cases/SimplePropertyElement.xaml
  2. 1
      ILSpy.BamlDecompiler/Tests/ILSpy.BamlDecompiler.Tests.csproj
  3. 6
      ILSpy.BamlDecompiler/Tests/TestRunner.cs

6
ILSpy.BamlDecompiler/Tests/Cases/SimplePropertyElement.xaml

@ -0,0 +1,6 @@
<Label xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Label.Style>
<Style />
</Label.Style>
<Label.Content>Blah</Label.Content>
</Label>

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

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

6
ILSpy.BamlDecompiler/Tests/TestRunner.cs

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

Loading…
Cancel
Save