Esempio n. 1
0
        public void Single_Remove_Ignored()
        {
            // Property exists, but not in current set
            _intsAndString.Exclude(x => x.Int1);

            // Nothing should happen
            Assert.AreEqual(_intsAndString.Names.Count(), 0,
                            "Expected the set to be empty");
        }
Esempio n. 2
0
        public void RemoveFromExisting()
        {
            // Start with string included
            AddToExisting();

            // Remove it
            _intsAndString.Exclude(x => x.StringProp);

            // String should now *not* be included
            Assert.IsFalse(_intsAndString.Names.Any(x => x.Equals("StringProp")),
                           "Contained StringProp when it should have been removed");
        }