Exemplo n.º 1
0
        public void TestMethod_RepartitionDizaineTirage_5_unites()
        {
            Tirage source = new Tirage(1, 2, 3, 4, 5, 0, 0);

            int[] expected = new int[5] {
                5, 0, 0, 0, 0
            };
            int[] result = Tirage.RepartitionDizaineTirage(source);
            Assert.IsTrue(AssertAreEqual(result, expected));
        }
Exemplo n.º 2
0
        public void TestMethod_RepartitionDizaineTirage_one_of_each()
        {
            Tirage source = new Tirage(1, 10, 20, 34, 45, 0, 0);

            int[] expected = new int[5] {
                1, 1, 1, 1, 1
            };
            int[] result = Tirage.RepartitionDizaineTirage(source);
            Assert.IsTrue(AssertAreEqual(result, expected));
        }
Exemplo n.º 3
0
        public void TestMethod_RepartitionDizaineTirage_5_quarantaines()
        {
            Tirage source = new Tirage(41, 42, 43, 44, 50, 0, 0);

            int[] expected = new int[5] {
                0, 0, 0, 0, 5
            };
            int[] result = Tirage.RepartitionDizaineTirage(source);
            Assert.IsTrue(AssertAreEqual(result, expected));
        }
Exemplo n.º 4
0
        public void TestMethod_RepartitionDizaineTirage_5_trentaines()
        {
            Tirage source = new Tirage(31, 32, 33, 34, 35, 0, 0);

            int[] expected = new int[5] {
                0, 0, 0, 5, 0
            };
            int[] result = Tirage.RepartitionDizaineTirage(source);
            Assert.IsTrue(AssertAreEqual(result, expected));
        }
Exemplo n.º 5
0
        public void TestMethod_RepartitionDizaineTirage_5_vingtaines()
        {
            Tirage source = new Tirage(21, 22, 23, 24, 25, 0, 0);

            int[] expected = new int[5] {
                0, 0, 5, 0, 0
            };
            int[] result = Tirage.RepartitionDizaineTirage(source);
            Assert.IsTrue(AssertAreEqual(result, expected));
        }
Exemplo n.º 6
0
        public void TestMethod_RepartitionDizaineTirage_5_dizaines()
        {
            Tirage source = new Tirage(10, 12, 13, 14, 15, 0, 0);

            int[] expected = new int[5] {
                0, 5, 0, 0, 0
            };
            int[] result = Tirage.RepartitionDizaineTirage(source);
            Assert.IsTrue(AssertAreEqual(result, expected));
        }