//--------------------------------------------------------------------------------------------------------------------------------------------------------
//
// Copyright © 2010 Oli Francis
// This source code is subject to the terms and conditions of the MIT license. A copy of the license can be found in the license.txt
// file at the root of this distribution. By using this source code in any fashion, you are agreeing to be bound by the terms of the MIT License.
// You must not remove this notice from the software.
//
// Oli
//-------------------------------------------------------------------------------------------------------------------------------------------------------
namespace TeamBrain.Tests.Utilities
{
using System;
using System.Linq;
///
/// Extension methods on the string type
///
public static class StringExtensions
{
///
/// Converts a space delimited string into a single, compound pascal case string
///
public static string ToPascalCase(this string text)
{
return String.Join(string.Empty, from s in text.Split(' ') select s[0].ToString().ToUpper() + s.Substring(1));
}
}
}