Browse Source

In .:
2007-07-11 Ankit Jain <[email protected]>

* System_test.dll.sources: Add ProcessStartInfoTest.cs.

In System.Diagnostics:
2007-07-11 Ankit Jain <[email protected]>

* ProcessStartInfo.cs (WorkingDirectory.set): Don't set
working_directory to null.

In Test/System.Diagnostics:
2007-07-11 Ankit Jain <[email protected]>

* ProcessStartInfoTest.cs: New.

svn path=/trunk/mcs/; revision=81783

Raja R Harinath 18 years ago
parent
commit
f36b1982dc

+ 4 - 0
mcs/class/System/ChangeLog

@@ -1,3 +1,7 @@
+2007-07-11  Ankit Jain  <[email protected]>
+
+	* System_test.dll.sources: Add ProcessStartInfoTest.cs.
+
 2007-06-12  Marek Safar <[email protected]>
 
 	* Makefile: Check only major framework version to do 2.x build.

+ 5 - 0
mcs/class/System/System.Diagnostics/ChangeLog

@@ -1,3 +1,8 @@
+2007-07-11  Ankit Jain  <[email protected]>
+
+	* ProcessStartInfo.cs (WorkingDirectory.set): Don't set
+	working_directory to null.
+
 2007-05-18  Atsushi Enomoto  <[email protected]>
 
 	* TraceSourceInfo.cs : new class for storing configuration data.

+ 1 - 1
mcs/class/System/System.Diagnostics/ProcessStartInfo.cs

@@ -232,7 +232,7 @@ namespace System.Diagnostics
 				return(working_directory);
 			}
 			set {
-				working_directory = value;
+				working_directory = value == null ? String.Empty : value;
 			}
 		}
 	}

+ 1 - 0
mcs/class/System/System_test.dll.sources

@@ -162,6 +162,7 @@ System.Diagnostics/EventLogPermissionTest.cs
 System.Diagnostics/EventSourceCreationDataTest.cs
 System.Diagnostics/PerformanceCounterPermissionAttributeTest.cs
 System.Diagnostics/PerformanceCounterPermissionTest.cs
+System.Diagnostics/ProcessStartInfoTest.cs
 System.Diagnostics/ProcessTest.cs
 System.IO/FileSystemWatcherTest.cs
 System.IO.Compression/DeflateStreamTest.cs

+ 4 - 0
mcs/class/System/Test/System.Diagnostics/ChangeLog

@@ -1,3 +1,7 @@
+2007-07-11  Ankit Jain  <[email protected]>
+
+	* ProcessStartInfoTest.cs: New.
+
 2007-05-19  Atsushi Enomoto  <[email protected]>
 
 	* DelimitedListTraceListenerTest.cs : new test.

+ 28 - 0
mcs/class/System/Test/System.Diagnostics/ProcessStartInfoTest.cs

@@ -0,0 +1,28 @@
+//
+// ProcessStartInfoTest.cs - NUnit Test Cases for System.Diagnostics.ProcessStartInfo
+//
+// Authors:
+//   Ankit Jain <[email protected]>
+//
+// (c) 2007 Novell, Inc. (http://www.novell.com)
+// 
+
+using System;
+using System.Diagnostics;
+
+using NUnit.Framework;
+
+namespace MonoTests.System.Diagnostics
+{
+	[TestFixture]
+	public class ProcessStartInfoTest
+	{
+		[Test]
+		public void NullWorkingDirectory ()
+		{
+			ProcessStartInfo info = new ProcessStartInfo ();
+			info.WorkingDirectory = null;
+			Assert.AreEqual (info.WorkingDirectory, String.Empty, "#1");
+		}
+	}
+}