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