Example #1
0
 public void TrySingleWithNullAndFunc_ReturnsNone()
 {
     Assert.IsFalse(OptionExtensionsForIEnumerable.TrySingle <bool>(null, x => true).HasValue);
 }
 public void TryElementAtWithNull_ReturnsNone()
 {
     Assert.IsFalse(OptionExtensionsForIEnumerable.TryElementAt <bool>(null, 0).HasValue);
 }
Example #3
0
 public void LastOrNoneWithNull_ReturnsNone()
 {
     Assert.IsFalse(OptionExtensionsForIEnumerable.TryLast <bool>(null).HasValue);
 }