<commit_before>﻿using NUnit.Framework;
using Hangman.Logic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hangman.Logic.Tests
{
    [TestFixture()]
    public class Playe
    {
        [TestCase(null)]
        [TestCase("")]
        [TestCase(" ")]
        [ExpectedException]
        public void PlayerInvalidNameTest(string name)
        {
            var player = new Player(name, 7);
        }
    }
}<commit_msg>added old player tests<commit_after>﻿using NUnit.Framework;
using Hangman.Logic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hangman.Logic.Tests
{
    [TestFixture()]
    public class Playe
    {
        [TestCase(null)]
        [TestCase("")]
        [TestCase(" ")]
        [ExpectedException]
        public void PlayerInvalidNameTest(string name)
        {
            var player = new Player(name, 7);
        }

         [Test]
        public void PlayerIsCreatedWithCorrectFirstName()
        {
            var player = new Player("Pesho", 0);
            string actual = player.PlayerName;
            string expected = "Pesho";
            Assert.AreEqual(actual, expected);
        }

        [Test]
        public void PlayerIsCreatedWithCorrectScore()
        {
            var player = new Player("Gosho", 7);
            var actual = player.Score;
            uint expected = 7;
            Assert.AreEqual(actual, expected);
        }
    }
}
{'fraction_non_alphanumeric': 0.10403120936280884, 'fraction_numerical': 0.003250975292587776, 'mean_word_length': 2.1731958762886596, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7377671', 'n_tokens_mistral': 436, 'n_tokens_neox': 427, 'n_words': 103}