Browse Source

New Unit Tests. "ListBox2" does not work at the moment!

pull/586/head
jogibear9988 12 years ago
parent
commit
f72e6b8806
  1. 38
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/XamlDom/SamplesTests.cs

38
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/XamlDom/SamplesTests.cs

@ -127,7 +127,7 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
} }
[Test] [Test]
public void Resources() public void Resources1()
{ {
TestLoading(@"<Page Name=""root"" TestLoading(@"<Page Name=""root""
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation""
@ -179,6 +179,23 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom
</UserControl>"); </UserControl>");
} }
[Test]
public void Resources5()
{
TestLoading(@"<UserControl
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source=""/ICSharpCode.WpfDesign.Tests;component/Test.xaml"" />
</ResourceDictionary.MergedDictionaries >
</ResourceDictionary>
</UserControl.Resources>
</UserControl>");
}
[Test] [Test]
public void Animation1() public void Animation1()
{ {
@ -343,6 +360,25 @@ bb
</Window>"); </Window>");
} }
[Test]
public void ListBox2()
{
TestLoading(@"<Window
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
<Canvas>
<ListBox ScrollViewer.VerticalScrollBarVisibility=""Hidden"">
<ListBox.ItemContainerStyle>
<Style TargetType=""{x:Type ListBoxItem}"">
<Setter Property=""Width"" Value=""10"" />
</Style>
</ListBox.ItemContainerStyle>
aa
bb
</ListBox>
</Canvas>
</Window>");
}
[Test] [Test]
public void CData1() public void CData1()

Loading…
Cancel
Save