<commit_before>﻿using Xunit;

namespace CasinoStrats.Core.Tests
{
    public class PlayerTest
    {
        [Theory]
        [InlineData(0)]
        [InlineData(2.5)]
        [InlineData(5)]
        public void TryDeduct_EnoughMoney(decimal amount)
        {
            var player = new Player(5);

            var result = player.TryDeduct(amount);

            Assert.True(result);
        }

        [Fact]
        public void TryDeduct_NotEnoughMoney()
        {
            var player = new Player(5);

            var result = player.TryDeduct(5.01m);

            Assert.False(result);
        }

        [Theory]
        [InlineData(-0)]
        [InlineData(-2.5)]
        [InlineData(-5)]
        public void TryDeduct_InvalidDeduction(decimal amount)
        {
            var player = new Player(5);

            var result = player.TryDeduct(amount);

            Assert.True(result);
        }<commit_msg>Remove incorrect test case<commit_after>﻿using System;
using Xunit;

namespace CasinoStrats.Core.Tests
{
    public class PlayerTest
    {
        [Theory]
        [InlineData(0)]
        [InlineData(2.5)]
        [InlineData(5)]
        public void TryDeduct_EnoughMoney(decimal amount)
        {
            var player = new Player(5);

            var result = player.TryDeduct(amount);

            Assert.True(result);
        }

        [Fact]
        public void TryDeduct_NotEnoughMoney()
        {
            var player = new Player(5);

            var result = player.TryDeduct(5.01m);

            Assert.False(result);
        }

        [Theory]
        [InlineData(-2.5)]
        [InlineData(-5)]
        public void TryDeduct_InvalidDeduction(decimal amount)
        {
            var player = new Player(5);

            Assert.Throws<ArgumentException>(() => player.TryDeduct(amount));
        }
{'fraction_non_alphanumeric': 0.10474631751227496, 'fraction_numerical': 0.014729950900163666, 'mean_word_length': 1.7170370370370371, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, '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': '4217107', 'n_tokens_mistral': 558, 'n_tokens_neox': 545, 'n_words': 104}