Exemple #1
0
        public void SetFieldsByRemoveOptionalities()
        {
            var actual = new FieldsContainer();

            for (int i = 0; i < 9; i++)
            {
                new Field().AddContainer(actual);
            }

            actual.RemovePossibility(2, new List <int>()
            {
                4, 5, 6, 7, 8, 9
            });
            actual.RemovePossibility(1, new List <int>()
            {
                3, 4, 5, 6, 7, 8, 9
            });
            actual.RemovePossibility(0, new List <int>()
            {
                2, 3, 4, 5, 6, 7, 8, 9
            });

            Assert.AreEqual(1, actual.Fields[0].Value);
            Assert.AreEqual(2, actual.Fields[1].Value);
            Assert.AreEqual(3, actual.Fields[2].Value);
        }