public void XmlUnexpandedVariable_7904(Profile profile) { using (var bundler = new BundlerTool()) { var code = @" using System; using Foundation; using ObjCRuntime; class T { static void Main () { Console.WriteLine (typeof (NSObject)); } } "; bundler.Profile = profile; bundler.CreateTemporaryCacheDirectory(); bundler.CreateTemporaryApp(profile, code: code); // typo is intentional since `{ProjectDir}` should be expanded (different issue) bundler.CustomArguments = new [] { "--xml=${xProjectDir}/linker.xml", "-v", "-v", "-v", "-v" }; bundler.AssertExecuteFailure(); // {} messing with a good pattern substitution - we want to avoid an MT0000 when verbosity is applied bundler.AssertErrorPattern(2004, ""); bundler.AssertErrorCount(1); } }
public void MX0070(string target_framework) { using (var bundler = new BundlerTool()) { bundler.Sdk = BundlerTool.None; bundler.TargetFramework = target_framework; #if MONOTOUCH bundler.Action = MTouchAction.None; #endif bundler.AssertExecuteFailure(); bundler.AssertErrorPattern(70, $"Invalid target framework: {target_framework}.*"); bundler.AssertWarningCount(0); bundler.AssertErrorCount(1); } }