|
|
@ -8,18 +8,21 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom |
|
|
|
public class MarkupExtensionTests : TestHelper |
|
|
|
public class MarkupExtensionTests : TestHelper |
|
|
|
{ |
|
|
|
{ |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
|
|
|
|
[Ignore] |
|
|
|
public void Test1() |
|
|
|
public void Test1() |
|
|
|
{ |
|
|
|
{ |
|
|
|
TestMarkupExtension("Title=\"{Binding}\""); |
|
|
|
TestMarkupExtension("Title=\"{Binding}\""); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
|
|
|
|
[Ignore] |
|
|
|
public void Test2() |
|
|
|
public void Test2() |
|
|
|
{ |
|
|
|
{ |
|
|
|
TestMarkupExtension("Title=\"{Binding Some}\""); |
|
|
|
TestMarkupExtension("Title=\"{Binding Some}\""); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
|
|
|
|
[Ignore] |
|
|
|
public void Test3() |
|
|
|
public void Test3() |
|
|
|
{ |
|
|
|
{ |
|
|
|
TestMarkupExtension("Title=\"{ Binding Some , ElementName = Some , Mode = TwoWay }\""); |
|
|
|
TestMarkupExtension("Title=\"{ Binding Some , ElementName = Some , Mode = TwoWay }\""); |
|
|
@ -44,18 +47,21 @@ namespace ICSharpCode.WpfDesign.Tests.XamlDom |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
|
|
|
|
[Ignore] |
|
|
|
public void Test7() |
|
|
|
public void Test7() |
|
|
|
{ |
|
|
|
{ |
|
|
|
TestMarkupExtension("Background=\"{DynamicResource {x:Static SystemColors.ControlBrushKey}}\""); |
|
|
|
TestMarkupExtension("Background=\"{DynamicResource {x:Static SystemColors.ControlBrushKey}}\""); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
|
|
|
|
[Ignore] |
|
|
|
public void Test8() |
|
|
|
public void Test8() |
|
|
|
{ |
|
|
|
{ |
|
|
|
TestMarkupExtension("Content=\"{Binding Some, RelativeSource={RelativeSource Self}}\""); |
|
|
|
TestMarkupExtension("Content=\"{Binding Some, RelativeSource={RelativeSource Self}}\""); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
|
|
|
|
[Ignore] |
|
|
|
[ExpectedException] // Must differ from official XamlReader result
|
|
|
|
[ExpectedException] // Must differ from official XamlReader result
|
|
|
|
public void Test9() |
|
|
|
public void Test9() |
|
|
|
{ |
|
|
|
{ |
|
|
|