示例#1
0
 public void MatchOnNullOnValueThrow()
 {
     Assert.Throws <ArgumentNullException>(() => StormExtensions.Match <object>(Mock.Of <IStormContent <object> >(), null, v => throw new Exception()));
 }
示例#2
0
 public void MatchOnNullContentThrow()
 {
     Assert.Throws <ArgumentNullException>(() => StormExtensions.Match <object>(null, v => throw new Exception(), v => throw new Exception()));
 }