In .:
authorRaja R Harinath <harinath@hurrynot.org>
Wed, 11 Jul 2007 11:13:13 +0000 (11:13 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Wed, 11 Jul 2007 11:13:13 +0000 (11:13 -0000)
2007-07-11  Ankit Jain  <jankit@novell.com>

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

In System.Diagnostics:
2007-07-11  Ankit Jain  <jankit@novell.com>

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

In Test/System.Diagnostics:
2007-07-11  Ankit Jain  <jankit@novell.com>

* ProcessStartInfoTest.cs: New.

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

mcs/class/System/ChangeLog
mcs/class/System/System.Diagnostics/ChangeLog
mcs/class/System/System.Diagnostics/ProcessStartInfo.cs
mcs/class/System/System_test.dll.sources
mcs/class/System/Test/System.Diagnostics/ChangeLog
mcs/class/System/Test/System.Diagnostics/ProcessStartInfoTest.cs [new file with mode: 0644]

index 955b1d192e3cd6b6792bd2395f7c902f6e263711..d2b63cbb2381f4dab3aa1a9d71fe092365f125fa 100644 (file)
@@ -1,3 +1,7 @@
+2007-07-11  Ankit Jain  <jankit@novell.com>
+
+       * System_test.dll.sources: Add ProcessStartInfoTest.cs.
+
 2007-06-12  Marek Safar <marek.safar@gmail.com>
 
        * Makefile: Check only major framework version to do 2.x build.
index 2bfc2ec6bfdbb345acac9f66789d74811a5b93c4..faf1c4381c2221426bba3cfc57c998748d3180c0 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-11  Ankit Jain  <jankit@novell.com>
+
+       * ProcessStartInfo.cs (WorkingDirectory.set): Don't set
+       working_directory to null.
+
 2007-05-18  Atsushi Enomoto  <atsushi@ximian.com>
 
        * TraceSourceInfo.cs : new class for storing configuration data.
index 0c624f532dacfd8763e928014ac0b63e279e0173..621b99041f93994236369131407c47c5d3ba03a3 100644 (file)
@@ -232,7 +232,7 @@ namespace System.Diagnostics
                                return(working_directory);
                        }
                        set {
-                               working_directory = value;
+                               working_directory = value == null ? String.Empty : value;
                        }
                }
        }
index a2ac18264e725d6cc9822e9d75830b54ef309c65..3a4e050e5982c38b5babb6e3b51ee4d58d86eb7b 100644 (file)
@@ -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
index c3068d04fa1922fea2bb03dd8e80d68442cea7b3..d475d1be18b68a3061585b6b092b1911af9e2050 100644 (file)
@@ -1,3 +1,7 @@
+2007-07-11  Ankit Jain  <jankit@novell.com>
+
+       * ProcessStartInfoTest.cs: New.
+
 2007-05-19  Atsushi Enomoto  <atsushi@ximian.com>
 
        * DelimitedListTraceListenerTest.cs : new test.
diff --git a/mcs/class/System/Test/System.Diagnostics/ProcessStartInfoTest.cs b/mcs/class/System/Test/System.Diagnostics/ProcessStartInfoTest.cs
new file mode 100644 (file)
index 0000000..c81926b
--- /dev/null
@@ -0,0 +1,28 @@
+//
+// ProcessStartInfoTest.cs - NUnit Test Cases for System.Diagnostics.ProcessStartInfo
+//
+// Authors:
+//   Ankit Jain <jankit@novell.com>
+//
+// (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");
+               }
+       }
+}