public void WillPassIfPercentIsGreaterThanRandomNumber() { var pcc = new PercentagePassChecker(100, new MockRandom(99)); Assert.True(pcc.Check(Feature.Doughnuts, null)); }
public void WillFailIfLessThanRandomNumber() { var pcc = new PercentagePassChecker(0, new MockRandom(1)); Assert.False(pcc.Check(Feature.Doughnuts, null)); }