public void CreateArticle_WhenNullIsPassed_ThenThrowsNullArgumentException()
        {
            //ARRANGE
            var articleFactory = new ArticleFactory();

            //ACT
            Assert.ThrowsDelegate testDelegate = () => articleFactory.CreateArticle(null);

            //ASSERT
            Assert.Throws<ArgumentNullException>(testDelegate);
        }
        public void Constructor_WhenDataIsInvalid_ThenReturnsNullArticle()
        {
            //ARRANGE
            var articleFactory = new ArticleFactory();

            //ACT
            var result = articleFactory.CreateArticle("something");

            //ASSERT
            Assert.IsType<NullArticle>(result);
        }
        public void Constructor_WhenDataIsInvalid_ThenThrowsArgumentNullException()
        {
            //ARRANGE
            var articleFactory = new ArticleFactory();

            //ACT
            Assert.ThrowsDelegate testDelegate = () => articleFactory.CreateArticle(string.Empty);

            //ASSERT
            Assert.Throws<ArgumentNullException>(testDelegate);
        }
        public void Constructor_WhenDataHasDie_ThenReturnsDieArticle()
        {
            //ARRANGE
            var articleFactory = new ArticleFactory();

            //ACT
            var result = articleFactory.CreateArticle("die");

            //ASSERT
            Assert.IsType<DieArticle>(result);
        }