示例#1
0
        public void Add_TermIsNull_ThrowsArgumentNullException()
        {
            // arrange
            Term newTerm = null;

            // act and assert
            var exception = Assert.Throws <ArgumentNullException>(() => _termService.Add(newTerm));

            Assert.IsTrue(exception.Message.Contains("term"));
        }