You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 ()
|
||||
{
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
#include mobile_static_Mono.CSharp.dll.sources
|
||||
monotouch.cs
|
||||
Reference in New Issue
Block a user