Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use uppercase string class

  • Loading branch information...
commit 5ce67de6a4da68558a8b6866173fbbd3fce3afef 1 parent aa6291a
@lformella authored
View
3  Server.Test/Helper/Process.cs
@@ -21,6 +21,7 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
+using System;
using System.IO;
using NUnit.Framework;
@@ -52,7 +53,7 @@ public void Run()
bool Compress(string file, string archive, string password)
{
var p = new Server.Helper.Process
- {Command = "rar", Arguments = "a " + (string.IsNullOrEmpty(password) ? "" : "-p" + password + " ") + archive + " " + file};
+ {Command = "rar", Arguments = "a " + (String.IsNullOrEmpty(password) ? "" : "-p" + password + " ") + archive + " " + file};
return p.Run();
}
View
4 Server.Test/Irc/Notice.cs
@@ -21,6 +21,8 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
+using System;
+
using NUnit.Framework;
namespace XG.Server.Test.Irc
@@ -44,7 +46,7 @@ public void BotMessages()
":[XG]TestBot!~SYSTEM@XG.BITPIR.AT NOTICE xg1_bitpir_at : ** Closing Connection You Must JOIN MG-CHAT As Well To Download - Your Download Will Be Canceled Now");
Assert.AreEqual("JOIN #MG-CHAT", EventData);
- Assert.AreEqual(true, string.IsNullOrEmpty(EventParsingError));
+ Assert.AreEqual(true, String.IsNullOrEmpty(EventParsingError));
}
}
}
View
6 Server.Test/Irc/PrivateMessage.cs
@@ -50,7 +50,7 @@ public void ParseBandwidth()
Assert.AreEqual(0, Bot.InfoSpeedCurrent);
Assert.AreEqual((Int64) (231.4 * 1024), Bot.InfoSpeedMax);
- Assert.AreEqual(true, string.IsNullOrEmpty(EventParsingError));
+ Assert.AreEqual(true, String.IsNullOrEmpty(EventParsingError));
}
[Test]
@@ -74,7 +74,7 @@ public void ParsePacketInfo()
Assert.AreEqual(13, Bot.InfoSlotCurrent);
Assert.AreEqual(15, Bot.InfoSlotTotal);
- Assert.AreEqual(true, string.IsNullOrEmpty(EventParsingError));
+ Assert.AreEqual(true, String.IsNullOrEmpty(EventParsingError));
}
[Test]
@@ -105,7 +105,7 @@ public void ParsePackets()
Assert.AreEqual((Int64) (2.2 * 1024 * 1024 * 1024), tPack.Size);
Assert.AreEqual("Payback.Heute.ist.Zahltag.2011.German.DL.1080p.BluRay.x264-LeechOurStuff.mkv", tPack.Name);
- Assert.AreEqual(true, string.IsNullOrEmpty(EventParsingError));
+ Assert.AreEqual(true, String.IsNullOrEmpty(EventParsingError));
}
}
}
View
4 Server/Helper/FileActions.cs
@@ -642,7 +642,7 @@ void JoinCompleteParts(object aObject)
/// <param name="aFile"> </param>
void HandleFile(string aFile)
{
- if (!string.IsNullOrEmpty(aFile))
+ if (!String.IsNullOrEmpty(aFile))
{
string folder = Path.GetDirectoryName(aFile);
string file = Path.GetFileName(aFile);
@@ -673,7 +673,7 @@ void HandleFile(string aFile)
void RunFileHandlerProcess(FileHandlerProcess aHandler, string aPath, string aFolder, string aFile, string aFileName, string aFileExtension)
{
- if (aHandler == null || string.IsNullOrEmpty(aHandler.Command) || string.IsNullOrEmpty(aHandler.Arguments))
+ if (aHandler == null || String.IsNullOrEmpty(aHandler.Command) || String.IsNullOrEmpty(aHandler.Arguments))
{
return;
}
View
6 Server/Irc/AParser.cs
@@ -181,9 +181,9 @@ protected string RemoveSpecialIrcChars(string aData)
{
// |\u0031|\u0015)
aData = Regex.Replace(aData, "(\u0002|\u0003)(\\d+(,\\d{1,2}|)|)", "");
- aData = aData.Replace("\u000F", string.Empty);
- aData = aData.Replace("\uFFFD", string.Empty);
- aData = aData.Replace("\u0016", string.Empty);
+ aData = aData.Replace("\u000F", String.Empty);
+ aData = aData.Replace("\uFFFD", String.Empty);
+ aData = aData.Replace("\u0016", String.Empty);
return aData.Trim();
}
Please sign in to comment.
Something went wrong with that request. Please try again.