Пример #1
0
        public void ExclusiveOrYieldsImmutableCone()
        {
            ISet mySet = new ListSet(new int[] { 1, 4 });
            ISet clone = Set.ExclusiveOr(mySet);

            Assert.IsNotNull(clone);
            Assert.AreEqual(3, clone.Count);
            Assert.Throws <NotSupportedException>(() => clone.Add("bad chair, bad chair"));
        }
Пример #2
0
 public void SetUp()
 {
     one = new ListSet(new object [] { 1, "Foo", 2 });
     two = new ListSet(new object [] { 1, 3 });
 }
Пример #3
0
 public override void SetUp()
 {
     Set          = new ListSet();
     SetForSetOps = new ListSet();
 }