private void ItShouldWriteItToDisk() { var writer = new FakeWriter(); LotteryNumberSetWriter.WriteSet(writer, LotteryNumberSet.Generate(() => LotteryNumber.Generate(new MonoStateRandomNumberGenerator(Int32.MaxValue)))); Assert.True(writer.Written); }
private void TheSetShouldHaveSixNumbers() { var set = LotteryNumberSet.Generate(() => LotteryNumber.Generate(new MonoStateRandomNumberGenerator(Int32.MaxValue))); Assert.Equal(6, set.Count); }
private void DuplicateNumbersShouldNeverBeAllowed() { var set = LotteryNumberSet.Generate(() => LotteryNumber.Generate(new FakeRandomNumberGenerator())); Assert.Equal(6, set.Count); }