Created
September 8, 2010 14:55
-
-
Save zeedunk/570239 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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