Exemplo n.º 1
0
 public void SwitchWithCompare2Returns()
 {
     Assert.That(StormExtensions.SwitchWithCompare(Mock.Of <IStorm <IStorm <int> > >(), Mock.Of <IEqualityComparer <int> >()), Is.Not.Null);
 }
Exemplo n.º 2
0
 public void SwitchWithCompare2WithNullSelectorThrow()
 {
     Assert.Throws <ArgumentNullException>(() => StormExtensions.SwitchWithCompare(null, Mock.Of <IEqualityComparer <int> >()));
 }
Exemplo n.º 3
0
 public void SwitchWithCompare2WithNullComparerThrow()
 {
     Assert.Throws <ArgumentNullException>(() => StormExtensions.SwitchWithCompare(Mock.Of <IStorm <IStorm <int> > >(), null));
 }
Exemplo n.º 4
0
 public void SwitchWithCompare1WithNullSelectorThrow()
 {
     Assert.Throws <ArgumentNullException>(() => StormExtensions.SwitchWithCompare <int>(null));
 }