Example #1
0
        public void Remove_WhenCalled_TermIsRemoveFromListOfTerms()
        {
            // arrange
            var expected = new List <Term>
            {
                FakeTermRepository.terms[0],
                FakeTermRepository.terms[2],
                FakeTermRepository.terms[3]
            };

            Term toRemove = FakeTermRepository.terms[1];

            // act
            _termService.Remove(toRemove);

            // assert
            Assert.AreEqual(expected, FakeTermRepository.terms);
        }