diff options
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/TestSharedResourceDictionary.xaml.cs')
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/TestSharedResourceDictionary.xaml.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/TestSharedResourceDictionary.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/TestSharedResourceDictionary.xaml.cs new file mode 100644 index 00000000..dff3f893 --- /dev/null +++ b/Xamarin.Forms.Xaml.UnitTests/TestSharedResourceDictionary.xaml.cs @@ -0,0 +1,31 @@ +using NUnit.Framework; + +using Xamarin.Forms; + +namespace Xamarin.Forms.Xaml.UnitTests +{ + public partial class TestSharedResourceDictionary : ContentPage + { + public TestSharedResourceDictionary () + { + InitializeComponent (); + } + + public TestSharedResourceDictionary (bool useCompiledXaml) + { + //this stub will be replaced at compile time + } + + [TestFixture] + public class Tests + { + [TestCase (false)] + [TestCase (true)] + public void MergedResourcesAreFound (bool useCompiledXaml) + { + var layout = new TestSharedResourceDictionary (useCompiledXaml); + Assert.AreEqual (Color.Pink, layout.label.TextColor); + } + } + } +}
\ No newline at end of file |