diff options
Diffstat (limited to 'mcs')
12 files changed, 14 insertions, 15 deletions
diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.Security/DerbyRoleProvider.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.Security/DerbyRoleProvider.cs index e1af0e60e3f..cdce377b281 100644 --- a/mcs/class/Mainsoft.Web/Mainsoft.Web.Security/DerbyRoleProvider.cs +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.Security/DerbyRoleProvider.cs @@ -138,7 +138,7 @@ namespace Mainsoft.Web.Security if (returnValue == 0)
return true;
if (returnValue == 2)
- return false; //role does not exists
+ return false; //role does not exist
else if (returnValue == 3 && throwOnPopulatedRole)
throw new ProviderException (rolename + " is not empty");
else
diff --git a/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs b/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs index 7488f79b56f..7ba53e922bf 100644 --- a/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs +++ b/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs @@ -2305,7 +2305,7 @@ namespace Mono.Unix.Native { // Syscall to getpwnam to retrieve user uid Passwd pw = Syscall.getpwnam (username); if (pw == null) - throw new ArgumentException (string.Format ("User {0} does not exists",username), "username"); + throw new ArgumentException (string.Format ("User {0} does not exist", username), "username"); return getgrouplist (pw); } diff --git a/mcs/class/System.Data.OracleClient/Test/TestOracleClient.cs b/mcs/class/System.Data.OracleClient/Test/TestOracleClient.cs index 3f7810f6c08..dbec9aca65d 100644 --- a/mcs/class/System.Data.OracleClient/Test/TestOracleClient.cs +++ b/mcs/class/System.Data.OracleClient/Test/TestOracleClient.cs @@ -1345,7 +1345,7 @@ namespace Test.OracleClient cmd2.ExecuteNonQuery (); } catch(OracleException) { - // ignore if procedure does not exists + // ignore if procedure does not exist } Console.WriteLine(" Create table MONO_TEST_TABLE2..."); diff --git a/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesSearchResultTest.cs b/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesSearchResultTest.cs index 487bdbcd160..87f69ad7d0f 100644 --- a/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesSearchResultTest.cs +++ b/mcs/class/System.DirectoryServices/Test/System.DirectoryServices/DirectoryServicesSearchResultTest.cs @@ -322,7 +322,7 @@ namespace MonoTests.System.DirectoryServices ds.Filter = "(objectClass=person)";
result = ds.FindOne();
- // Properties that does not exists are not loaded
+ // Properties that do not exist are not loaded
Assert.AreEqual(result.Properties.Count,3);
Assert.IsTrue(result.Properties.Contains("cn"));
Assert.IsTrue(result.Properties.Contains("objectClass"));
diff --git a/mcs/class/System.Web/System.Web.Security/SqlRoleProvider.cs b/mcs/class/System.Web/System.Web.Security/SqlRoleProvider.cs index 9ac8b2cce18..7c6fa45e89f 100644 --- a/mcs/class/System.Web/System.Web.Security/SqlRoleProvider.cs +++ b/mcs/class/System.Web/System.Web.Security/SqlRoleProvider.cs @@ -193,7 +193,7 @@ namespace System.Web.Security if (returnValue == 0) return true; if (returnValue == 1) - return false; //role does not exists + return false; //role does not exist else if (returnValue == 2 && throwOnPopulatedRole) throw new ProviderException (rolename + " is not empty"); else diff --git a/mcs/class/System.XML/Test/System.Xml/XmlNodeReaderTests.cs b/mcs/class/System.XML/Test/System.Xml/XmlNodeReaderTests.cs index 0a8268a632c..8d7a9a9afa6 100644 --- a/mcs/class/System.XML/Test/System.Xml/XmlNodeReaderTests.cs +++ b/mcs/class/System.XML/Test/System.Xml/XmlNodeReaderTests.cs @@ -138,7 +138,7 @@ namespace MonoTests.System.Xml nr.Read (); // root
nr.Read (); // &ent3;
Assert.AreEqual (XmlNodeType.EntityReference, nr.NodeType);
- // ent3 does not exists in this dtd.
+ // ent3 does not exist in this dtd.
nr.ResolveEntity ();
Assert.AreEqual (XmlNodeType.EntityReference, nr.NodeType);
nr.Read ();
@@ -170,7 +170,7 @@ namespace MonoTests.System.Xml nr.Read (); // root
nr.Read (); // &ent;
Assert.AreEqual (XmlNodeType.EntityReference, nr.NodeType);
- // ent does not exists in this dtd.
+ // ent does not exist in this dtd.
nr.ResolveEntity ();
}
diff --git a/mcs/class/System.XML/Test/System.Xml/XmlTextReaderTests.cs b/mcs/class/System.XML/Test/System.Xml/XmlTextReaderTests.cs index 21006f72963..7ecd83780ae 100644 --- a/mcs/class/System.XML/Test/System.Xml/XmlTextReaderTests.cs +++ b/mcs/class/System.XML/Test/System.Xml/XmlTextReaderTests.cs @@ -1074,7 +1074,7 @@ namespace MonoTests.System.Xml dvr.Read (); // root dvr.Read (); // &ent3; Assert.AreEqual (XmlNodeType.EntityReference, dvr.NodeType); - // ent3 does not exists in this dtd. + // ent3 does not exist in this dtd. Assert.AreEqual (XmlNodeType.EntityReference, dvr.NodeType); try { dvr.ResolveEntity (); diff --git a/mcs/class/System.XML/Test/System.Xml/nist_dom/fundamental/NamedNodeMap/NamedNodeMap.cs b/mcs/class/System.XML/Test/System.Xml/nist_dom/fundamental/NamedNodeMap/NamedNodeMap.cs index 2b538893e7a..c3a961794bf 100644 --- a/mcs/class/System.XML/Test/System.Xml/nist_dom/fundamental/NamedNodeMap/NamedNodeMap.cs +++ b/mcs/class/System.XML/Test/System.Xml/nist_dom/fundamental/NamedNodeMap/NamedNodeMap.cs @@ -608,7 +608,7 @@ namespace nist_dom.fundamental //--------------------------- test case core-0011M ---------------------------
//
// Testing feature - The "removeNamedItem(name)" method returns null if the
- // name specified does not exists in the map.
+ // name specified does not exist in the map.
//
// Testing approach - Retrieve the third employee and create a NamedNodeMap
// object from the attributes in its last child.
diff --git a/mcs/class/System/System.IO/FileSystemWatcher.cs b/mcs/class/System/System.IO/FileSystemWatcher.cs index d92f827f7fa..125f07805f9 100644 --- a/mcs/class/System/System.IO/FileSystemWatcher.cs +++ b/mcs/class/System/System.IO/FileSystemWatcher.cs @@ -93,7 +93,7 @@ namespace System.IO { throw new ArgumentException ("Empty path", "path"); if (!Directory.Exists (path)) - throw new ArgumentException ("Directory does not exists", "path"); + throw new ArgumentException ("Directory does not exist", "path"); this.enableRaisingEvents = false; this.filter = filter; @@ -312,7 +312,7 @@ namespace System.IO { throw new ArgumentException ("Invalid directory name", "value", exc); if (!exists) - throw new ArgumentException ("Directory does not exists", "value"); + throw new ArgumentException ("Directory does not exist", "value"); path = value; fullpath = null; diff --git a/mcs/class/corlib/System.IO/Directory.cs b/mcs/class/corlib/System.IO/Directory.cs index 6066c031cba..baa366a7efb 100644 --- a/mcs/class/corlib/System.IO/Directory.cs +++ b/mcs/class/corlib/System.IO/Directory.cs @@ -140,7 +140,7 @@ namespace System.IO if (!success) { /* * FIXME: - * In io-layer/io.c rmdir returns error_file_not_found if directory does not exists. + * In io-layer/io.c rmdir returns error_file_not_found if directory does not exist. * So maybe this could be handled somewhere else? */ if (error == MonoIOError.ERROR_FILE_NOT_FOUND) { diff --git a/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs b/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs index e53cdbb097e..c73c6ada22b 100644 --- a/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs +++ b/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs @@ -570,7 +570,7 @@ namespace System.Reflection.Emit if (resourceFileName.Length == 0) throw new ArgumentException ("resourceFileName"); if (!File.Exists (resourceFileName) || Directory.Exists (resourceFileName)) - throw new FileNotFoundException ("File '" + resourceFileName + "' does not exists or is a directory."); + throw new FileNotFoundException ("File '" + resourceFileName + "' does not exist or is a directory."); if (native_resource != NativeResourceType.None) throw new ArgumentException ("Native resource has already been defined."); diff --git a/mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs b/mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs index eab1cd0b8c9..32aa0b81fbe 100644 --- a/mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs +++ b/mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs @@ -1,4 +1,3 @@ - // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // @@ -534,7 +533,7 @@ namespace System.Reflection.Emit { if (resourceFileName == String.Empty) throw new ArgumentException ("resourceFileName"); if (!File.Exists (resourceFileName) || Directory.Exists (resourceFileName)) - throw new FileNotFoundException ("File '" + resourceFileName + "' does not exists or is a directory."); + throw new FileNotFoundException ("File '" + resourceFileName + "' does not exist or is a directory."); throw new NotImplementedException (); } |