public void TestJoinFromContract()
        {
            var setA = FACTORY.NewStrongOwner <int>(this.rootDiscardable_);
            var setB = FACTORY.NewWeakOwner <int>(this.rootDiscardable_);

            var contract = setA.FormOpen(0);

            Assert.IsFalse(contract.Join(setA));
            Assert.IsTrue(contract.Join(setB));
            Assert.IsFalse(contract.Join(setB));

            Utils.AssertContents(setA, contract);
            Utils.AssertContents(setB, contract);
        }
Exemplo n.º 2
0
        public void TestSetInitiallyEmpty()
        {
            var set = FACTORY.NewStrongOwner <int>(this.rootDiscardable_);

            Utils.AssertEmpty(set);
        }