Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2010-08-17 18:29:24 +0400
committerMarek Safar <marek.safar@gmail.com>2010-08-17 18:34:18 +0400
commitf594edd742125ad8df742a244492ee0965bce75d (patch)
tree27d2265a6f11396e74ffc0ea491d2f26e2944ce7 /mcs/tests/test-795.cs
parentd01dd3f3e4f2d5f90b7f547875edc012dd72c11c (diff)
New tests
Diffstat (limited to 'mcs/tests/test-795.cs')
-rw-r--r--mcs/tests/test-795.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/tests/test-795.cs b/mcs/tests/test-795.cs
new file mode 100644
index 00000000000..ba533cee225
--- /dev/null
+++ b/mcs/tests/test-795.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Reflection;
+
+public class Test : MarshalByRefObject
+{
+ public DateTime Stamp = new DateTime (1968, 1, 2);
+
+ public static int Main ()
+ {
+ var setup = new AppDomainSetup();
+ setup.ApplicationBase = System.Environment.CurrentDirectory;
+
+ AppDomain d = AppDomain.CreateDomain ("foo", AppDomain.CurrentDomain.Evidence, setup);
+
+ Test t = (Test) d.CreateInstanceAndUnwrap (Assembly.GetExecutingAssembly().FullName, typeof (Test).FullName);
+ t.Stamp = new DateTime (1968, 1, 3);
+ Console.WriteLine (t.Stamp);
+ return 0;
+ }
+}