namespace X10D.Tests
{
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
///
/// Tests for .
///
[TestClass]
public class StringTests
{
///
/// Tests for .
///
[TestMethod]
public void Repeat()
{
Assert.AreEqual("foofoofoofoofoo", "foo".Repeat(5));
}
///
/// Tests for .
///
[TestMethod]
public void Split()
{
const string str = "Hello World";
// ReSharper disable once SuggestVarOrType_Elsewhere
var arr = str.Split(2).ToArray();
CollectionAssert.AreEqual(new[] { "He", "ll", "o ", "Wo", "rl", "d" }, arr);
}
}
}