diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2017-01-25 17:03:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-25 17:03:30 +0100 |
commit | ccf784656de12d5b4c54bd09e64da2333f3351d0 (patch) | |
tree | 8fffea8cf88ff6c8abaef751347c317f46470441 /Xamarin.Forms.Xaml.UnitTests | |
parent | ccc99315beb6f9effc8ad2c8f78cedf98534cec2 (diff) | |
download | xamarin-forms-ccf784656de12d5b4c54bd09e64da2333f3351d0.tar.gz xamarin-forms-ccf784656de12d5b4c54bd09e64da2333f3351d0.tar.bz2 xamarin-forms-ccf784656de12d5b4c54bd09e64da2333f3351d0.zip |
[XamlC] use TypeRefComparer to compare TypeRef from different assemblies (#710)
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests')
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/XStatic.xaml | 3 | ||||
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/XStatic.xaml.cs | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/XStatic.xaml b/Xamarin.Forms.Xaml.UnitTests/XStatic.xaml index cf68525b..2627ae39 100644 --- a/Xamarin.Forms.Xaml.UnitTests/XStatic.xaml +++ b/Xamarin.Forms.Xaml.UnitTests/XStatic.xaml @@ -2,6 +2,7 @@ <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:Xamarin.Forms.Xaml.UnitTests" + xmlns:remote="clr-namespace:Xamarin.Forms.Controls;assembly=Xamarin.Forms.Controls" x:Class="Xamarin.Forms.Xaml.UnitTests.XStatic"> <ContentPage.ToolbarItems> <ToolbarItem Icon="{x:Static local:MockxStatic.MockFieldRef}" /> @@ -15,6 +16,8 @@ TextColor="{x:Static local:MockxStatic.BackgroundColor}" /> <Label x:Name="constant" Text="{x:Static local:MockxStatic.MockConstant}"/> + <Label x:Name="remoteConstant" + Text="{x:Static remote:App.AppName}"/> <Label x:Name="field" Text="{x:Static local:MockxStatic.MockField}"/> <ScrollView x:Name="enuM" diff --git a/Xamarin.Forms.Xaml.UnitTests/XStatic.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/XStatic.xaml.cs index 19c62630..63854e1c 100644 --- a/Xamarin.Forms.Xaml.UnitTests/XStatic.xaml.cs +++ b/Xamarin.Forms.Xaml.UnitTests/XStatic.xaml.cs @@ -96,6 +96,15 @@ namespace Xamarin.Forms.Xaml.UnitTests [TestCase(false)] [TestCase(true)] + //https://bugzilla.xamarin.com/show_bug.cgi?id=49228 + public void ConstantInARemoteAssembly(bool useCompiledXaml) + { + var layout = new XStatic(useCompiledXaml); + Assert.AreEqual("XamarinFormsControls", layout.remoteConstant.Text); + } + + [TestCase(false)] + [TestCase(true)] public void Field(bool useCompiledXaml) { var layout = new XStatic(useCompiledXaml); |