Exemplo n.º 1
0
        public void RemoveFeature_ItemSetFeatures2Items1__ReturnsItemHasNotFeature()
        {
            // arrange
            List <string> featureNames = new List <string> {
                "F1", "F2"
            };
            ItemNumericalSet set = new ItemNumericalSet(featureNames);
            ItemNumerical    i   = set.CreateItem();

            i.SetValue("F1", 3.2);
            i.SetValue("F2", 1.1);
            set.AddItem(i);

            // act
            bool r = set.RemoveFeature("F2");

            // assert
            Assert.AreEqual(true, r & !i.HasValue("F2"));
        }