public void CreateCommentsList_ShouldThrowArgumentNullException_WhenNullArgumentProvided()
        {
            // Arrange
            var formatter = new DisqusCommentsFormatter();

            // Act
            Action action = () => formatter.CreateCommentsList(null);

            // Assert
            action.ShouldThrow <ArgumentNullException>();
        }
        public void CreateCommentsList_ShouldReturnEmptyList_WhenEmptyListProvided()
        {
            // Arrange
            var formatter = new DisqusCommentsFormatter();

            // Act
            var result = formatter.CreateCommentsList(new List <FacebookComment>());

            // Assert
            result.Should().BeEmpty();
        }
        public void CreateCommentsList_ShouldReturnOneComment_WhenOneCommentProvided()
        {
            // Arrange
            var list = new List <FacebookComment>
            {
                new FacebookComment
                {
                    Message  = string.Empty,
                    Children = null,
                    From     = new FacebookCommentUser()
                }
            };

            var formatter = new DisqusCommentsFormatter();

            // Act
            var result = formatter.CreateCommentsList(list);

            // Assert
            result.Should().HaveCount(1);
            result.FirstOrDefault().Should().NotBeNull();
        }