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