diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2017-02-02 10:57:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-02 10:57:50 +0100 |
commit | fa0882114d31387acaa8d6f43b638a0bf1efa871 (patch) | |
tree | da73c08286f19c2aae8cabbbfbf630e47ad9a7f5 /Xamarin.Forms.Xaml.UnitTests/FactoryMethodMissingCtor.xaml.cs | |
parent | 72699e34b2f4b3e8a939eebe03240ca7511b50e7 (diff) | |
download | xamarin-forms-fa0882114d31387acaa8d6f43b638a0bf1efa871.tar.gz xamarin-forms-fa0882114d31387acaa8d6f43b638a0bf1efa871.tar.bz2 xamarin-forms-fa0882114d31387acaa8d6f43b638a0bf1efa871.zip |
[XamlC] Produce correct mdb files (#699)
* [XamlC] change MockCompile (internal) API
* [XamlC] fix debugging in unit test project
* f
* [XamlC] update cecil to 0.10.0-beta1-v2
* beta2
* avoid method duplication
* [XamlC] force loading MdbReader and Writer
* [XamlC] force use the writer in the other task too
* [XamlC] fix test and test code generator
* try building this
* [XamlC] Ensure InitializeComponent is correctly routed
* fix
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/FactoryMethodMissingCtor.xaml.cs')
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/FactoryMethodMissingCtor.xaml.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/FactoryMethodMissingCtor.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/FactoryMethodMissingCtor.xaml.cs index 6771edf6..919d654b 100644 --- a/Xamarin.Forms.Xaml.UnitTests/FactoryMethodMissingCtor.xaml.cs +++ b/Xamarin.Forms.Xaml.UnitTests/FactoryMethodMissingCtor.xaml.cs @@ -12,6 +12,11 @@ namespace Xamarin.Forms.Xaml.UnitTests InitializeComponent(); } + public FactoryMethodMissingCtor(bool useCompiledXaml) + { + //this stub will be replaced at compile time + } + [TestFixture] public class Tests { @@ -28,7 +33,7 @@ namespace Xamarin.Forms.Xaml.UnitTests if (useCompiledXaml) Assert.Throws(new XamlParseExceptionConstraint(7, 4), () => MockCompiler.Compile(typeof(FactoryMethodMissingCtor))); else - Assert.Throws<MissingMethodException>(() => new FactoryMethodMissingCtor()); + Assert.Throws<MissingMethodException>(() => new FactoryMethodMissingCtor(useCompiledXaml)); } } } |