Exemplo n.º 1
0
        public void ReturnsARandomListBasedOnPreferredOptions()
        {
            var table = new WeightedOptionTable <string>();

            table.AddEntry("Foo", 1);
            table.AddEntry("Bar", 1000000);
            var list = table.UniqueList();

            Assert.Equal("Bar", list.First());
            Assert.Equal("Foo", list.Last());
        }