public void InitServiceTest()
        {
            Mock <IProject> projectMock = new Mock <IProject>(MockBehavior.Strict);
            ParserService   target      = new ParserService();

            target.InitService(projectMock.Object);
            Assert.AreEqual(projectMock.Object, target.Project);
        }
        public void DestroyServiceTest()
        {
            Mock <IProject> projectMock = new Mock <IProject>(MockBehavior.Strict);
            ParserService   target      = new ParserService();

            target.InitService(projectMock.Object);
            target.DestroyService();
            Assert.IsNull(target.Project);
        }
        public void InitServiceTest_ArgumentMissing()
        {
            ParserService target = new ParserService();

            try
            {
                target.InitService(new object[0]);
            }
            catch (ArgumentException ex)
            {
                Assert.IsTrue(ex.Message.Contains("arguments"));
                return;
            }
            Assert.Fail("Exception not thrown");
        }
        public void InitServiceTest_ArgumentNull()
        {
            IProject      project = null;
            ParserService target  = new ParserService();

            try
            {
                target.InitService(project);
            }
            catch (ArgumentException ex)
            {
                Assert.IsTrue(ex.Message.Contains("IProject"));
                return;
            }
            Assert.Fail("Exception not thrown");
        }