private Select_SelectorIsNull_ArgumentNullExceptionThrown ( ) : void | ||
Résultat | void |
public void Select_SelectorIsNull_ArgumentNullExceptionThrown()
{
IEnumerable<int> source = Enumerable.Range(1, 10);
Func<int, int> selector = null;
Assert.Throws<ArgumentNullException>("selector", () => source.Select(selector));
}
[Fact]