public void ShouldCalculateWeight() { var sut = new LocalFunctionExamples(); var weight = sut.GetWeightForHolloBar(12m, 8m, 20m); Assert.Equal(356.01m, weight); }
public void ShouldThrowWithIteratorOldWay() { var sut = new LocalFunctionExamples(); var enumerable = sut.AlphabetSubset3OldWay('1', '2'); var ex = Assert.Throws <ArgumentOutOfRangeException>( () => enumerable.GetEnumerator().MoveNext()); }
public void ShouldThrowWithIteratorFunction() { var sut = new LocalFunctionExamples(); Assert.Throws <ArgumentOutOfRangeException>(() => sut.AlphabetSubset3('1', '2')); }