public void At_ItemMissingFromArray_DefaultReturned() { var array = new[] { "foo", "bar", "baz" }; const String expected = "default"; String actual = array.At(10, "default"); Debug.WriteLine(actual); Assert.AreEqual(expected, actual); }
public void At_ItemInArray_ItemReturned() { var array = new[] { "foo", "bar", "baz" }; const String expected = "bar"; String actual = array.At(1, (String) null); Debug.WriteLine(actual); Assert.AreEqual(expected, actual); }