コード例 #1
0
        public void AddWorkItems_Should_AddSuccessfully()
        {
            var feedback = new FakeFeedback();
            var member   = new Member("Bruce");

            member.AddWorkItems(feedback);
            Assert.IsTrue(member.WorkItems.Contains(feedback));
        }
コード例 #2
0
        public void RemoveWorkItemsShould_RemovedItem()
        {
            var feedback = new FakeFeedback();
            var member   = new Member("Bruce");

            member.AddWorkItems(feedback);
            member.RemoveWorkItems(feedback);
            Assert.AreEqual(member.WorkItems.Count, 0);
        }