Cosmos/source/FrodeTest/Test/StringTest.cs
Scalpel_cp 6e2674cfb3 Identified bug with adding char and string.
Bug still remains elsewhere.
Fixed ToHex.
2008-06-07 21:18:00 +00:00

26 lines
711 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FrodeTest.Test
{
public class StringTest
{
public static void RunTest()
{
Console.WriteLine("-- Testing String --");
Console.Write("LeftPadding: ");
string hex = "F";
hex = hex.PadLeft(2, '0');
Console.WriteLine(hex);
//Add char and string
//Bug discovered 7.june. SysFault when adding char and string.
string added = string.Empty;
added = ((char)('c')) + "oncatenating char and string works.";
Console.WriteLine(added);
}
}
}