コード例 #1
0
 public void ShouldHandleInvalidArguments()
 {
     Assert.Throws <ArgumentNullException>(() => default(IAsyncQueryable <Dummy>).OrderBy("Name.Length"));
     Assert.Throws <ArgumentNullException>(() => data.OrderBy(null));
     Assert.Throws <ArgumentNullException>(() => default(IOrderedAsyncQueryable <Dummy>).ThenBy("Name"));
     Assert.Throws <ArgumentNullException>(() => data.OrderBy("Name.Length").ThenBy(null));
 }