예제 #1
0
        public void RemoveSiblingFromOneHashTag_MustRemoveBothFromEachOthersSiblingsList()
        {
            HashTag h1 = new HashTag()
            {
                Name = "h1"
            };

            HashTag h2 = new HashTag()
            {
                Name = "h2"
            };

            h1.AddSibling(h2);
            h1.RemoveSibling(h2);

            int expectedSiblingsCount = 0;

            Assert.AreEqual<int>(expectedSiblingsCount, h2.Siblings.Length);
        }
예제 #2
0
        public void RemoveSibling()
        {
            HashTag h1 = new HashTag()
            {
                Name = "h1"
            };

            HashTag h2 = new HashTag()
            {
                Name = "h2"
            };

            h1.AddSibling(h2);
            h1.RemoveSibling(h2);

            int expectedSiblingsCount = 0;

            Assert.AreEqual<int>(expectedSiblingsCount, h1.Siblings.Length);
        }