Пример #1
0
        public void UpdateFullArticle_WHEN_sets_FullArticle_Property_To_Trimmed_Text_Of_newFullArticle_parameter()
        {
            const string NewFullText = "New Full Text  ";

            var imageReference = GetImageReference();
            var post = new BlogPost("ABC", "description", "fullText", imageReference, DateTime.Now, new BlogUser());

            post.UpdateFullArticle(NewFullText);

            post.FullArticle.ShouldEqual(NewFullText.Trim());
        }
Пример #2
0
        public void UpdateFullArticle_WHEN_newFullArticle_parameter_is_null_THEN_Throws_StringArgumentNullOrEmptyException()
        {
            var imageReference = GetImageReference();
            var post = new BlogPost("ABC", "description", "fullText", imageReference, DateTime.Now, new BlogUser());

            post.UpdateFullArticle(null);
        }