<commit_before>﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using BGGdotNET.Client;
using BGGdotNET.Objects;

namespace BGGdotNET_Unit
{
    [TestClass]
    public class BoardGameXML
    {
        [TestMethod]
        public void boardgame_DefaultSettings_ReturnsSingleGame()
        {
            IBGGClient client = new BGGXMLClient();
            List<BoardGame> result = client.getBoardGame(103885);

            Assert.AreEqual(103885, result[0].ObjectID);
        }

        [TestMethod]
        public void boardgame_DefaultSettings_ReturnsManyGames()
        {
            IBGGClient client = new BGGXMLClient();
            List<BoardGame> result = client.getBoardGame(103885, 98778, 129622);

            Assert.AreEqual(3, result.Count);
        }

        [TestMethod]
        public void boardgame_WithReturnComments_ReturnsComments()
        {
            IBGGClient client = new BGGXMLClient();


            List<BoardGame> result = client.getBoardGame();
        }
    }
}
<commit_msg>Added test for checking comments returned<commit_after>﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using BGGdotNET.Client;
using BGGdotNET.Objects;
using BGGdotNET.Enums;

namespace BGGdotNET_Unit
{
    [TestClass]
    public class BoardGameXML
    {
        [TestMethod]
        public void boardgame_DefaultSettings_ReturnsSingleGame()
        {
            // Arrange
            IBGGClient client = new BGGXMLClient();
            
            // Act
            List<BoardGame> result = client.getBoardGame(103885);

            // Assert
            Assert.AreEqual(103885, result[0].ObjectID);
        }

        [TestMethod]
        public void boardgame_DefaultSettings_ReturnsManyGames()
        {
            // Arrange
            IBGGClient client = new BGGXMLClient();
            
            // Act
            List<BoardGame> result = client.getBoardGame(103885, 98778, 129622);

            // Assert
            Assert.AreEqual(3, result.Count);
        }

        [TestMethod]
        public void boardgame_WithReturnComments_ReturnsComments()
        {
            // Arrange
            IBGGClient client = new BGGXMLClient();
            BoardGameSettings settings = new BoardGameSettings()
            {
                commSets = commentSettings.fetch
            };

            // Act
            List<BoardGame> result = client.getBoardGame(settings, 98778);

            // Assert
            Assert.IsTrue(result.Any(x => x.comments.count > 0));
        }
    }
}

{'fraction_non_alphanumeric': 0.08448083364346855, 'fraction_numerical': 0.02530703386676591, 'mean_word_length': 2.061503416856492, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2543930', 'n_tokens_mistral': 788, 'n_tokens_neox': 719, 'n_words': 144}