using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; namespace Pithos.Core.Test { [TestFixture] public class EnumerableExtensionsTest { [Test] public void TestSplice() { string[] twoElems= {"one","two"}; var result=twoElems.Splice(1); Assert.AreEqual(1,result.Count()); result=twoElems.Splice(0); Assert.AreEqual(2,result.Count()); } [Test] public void TestSpliceEmpty() { string[] empty= {}; var result=empty.Splice(1); Assert.AreEqual(0,result.Count()); result=empty.Splice(0); Assert.AreEqual(0,result.Count()); } } }