}
[Test]
- }
+ public void IgnoreMarkupExtensionException()
+ {
+ var xaml = @"
+ <ContentPage xmlns=""http://xamarin.com/schemas/2014/forms""
+ xmlns:x=""http://schemas.microsoft.com/winfx/2009/xaml"">
+ <ListView ItemsSource=""{x:Static Foo}"" />
+ </ContentPage>";
+
+ var exceptions = new List<Exception>();
+ Xamarin.Forms.Internals.ResourceLoader.ExceptionHandler = exceptions.Add;
+ Assert.DoesNotThrow(() => XamlLoader.Create(xaml, true));
+ Assert.That(exceptions.Count, Is.GreaterThan(1));
- [Test]
++ }
+
++ [Test]
public void CanResolveRootNode()
{
string assemblyName = null;