コード例 #1
0
 public void MultipleElementSequenceDoesNotIterate()
 {
     IEnumerableWithCount<int> source = new ThrowingEnumerable(2);
     Assert.Throws<InvalidOperationException>(() => source.Single());
 }