Assert.IsFalse (d.IsSynchronized, "IsSynchronized");
}
-#if NET_2_0 && !NET_2_1
+#if !NET_2_1
[Test] // bug #333740
public void GetEnvironmentVariables_NewlySet ()
{
public void GetCommandLineArgs ()
{
string[] args = Environment.GetCommandLineArgs ();
+#if !__WATCHOS__
Assert.IsNotNull (args, "not null");
Assert.IsTrue (((args.Length > 0) && (args.Length < 256)), "reasonable");
Assert.IsNotNull (args [0], "application");
+#else
+ Assert.AreEqual (0, args.Length, "length");
+#endif
}
-#if NET_2_0 && !NET_2_1
+#if !NET_2_1
[Test]
[ExpectedException (typeof (ArgumentException))]
public void GetEnvironmentVariable_Target_Invalid ()