Skip to content

Instantly share code, notes, and snippets.

@zeedunk
Created September 8, 2010 14:55
Show Gist options
  • Save zeedunk/570239 to your computer and use it in GitHub Desktop.
Save zeedunk/570239 to your computer and use it in GitHub Desktop.
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
//please pardon the MSTest.
namespace TestProject
{
[TestClass]
public class UnitTest
{
[TestMethod]
public void Select_Is_A_Poorly_Named_Version_Of_Map()
{
var intList = new[] { 1, 2, 3 };
var convertedList = intList.Select(x => x.ToString()).ToArray();
Assert.AreEqual("1", convertedList[0]);
Assert.AreEqual("2", convertedList[1]);
Assert.AreEqual("3", convertedList[2]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment