Imported Upstream version 4.3.2.467

Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
Xamarin Public Jenkins
2016-02-22 11:00:01 -05:00
parent f302175246
commit f3e3aab35a
4097 changed files with 122406 additions and 82300 deletions

View File

@@ -7,13 +7,17 @@ LIBRARY = Mono.CSharp.dll
LIB_REFS = System.Core System.Xml System
LIB_MCS_FLAGS =
MOBILE_STATIC := $(filter mobile_static monotouch monotouch_watch, $(PROFILE))
ifdef MOBILE_STATIC
LIB_MCS_FLAGS += -d:IOS_REFLECTION
endif
ifndef NO_THREAD_ABORT
REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
endif
TEST_MCS_FLAGS = -r:System.Core.dll
LIB_MCS_FLAGS += $(REFERENCE_SOURCES_FLAGS)
include ../../build/library.make

View File

@@ -83,6 +83,26 @@ namespace MonoTests.EvaluatorTest
Evaluator.Evaluate ("File.Exists (\"/etc/passwd\");");
}
[Test]
public void UsingWithError ()
{
try {
Evaluator.Run ("using System.DateTime;");
Assert.Fail ("#1");
} catch {
}
Evaluator.Evaluate ("1+1");
}
[Test]
public void UsingAlias ()
{
Evaluator.Run("using System;");
Evaluator.Run("using MyConsole = System.Console;");
Evaluator.Run("Console.WriteLine(\"Hello World\")");
}
[Test]
public void WithTypeBuilders ()
{

View File

@@ -0,0 +1,2 @@
#include mobile_static_Mono.CSharp.dll.sources
monotouch.cs