<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace Nvelope.Tests
{
    [TestFixture]
    public class MonthTests
    {
        [Test]
        public void CastToInt()
        {
            Assert.AreEqual(1, (int)Month.January);            
        }

        [Test]
        public void ConvertToInt()
        {
            Assert.AreEqual(1, Month.January.ConvertTo<int>());
        }

        [Test]
        public void FromInt()
        {
            Assert.AreEqual(Month.January, 1.ConvertTo<Month>());            
        }
    }
}<commit_msg>More robust tests for Month conversion<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace Nvelope.Tests
{
    [TestFixture]
    public class MonthTests
    {
        [Test]
        public void CastToInt()
        {
            Assert.AreEqual(1, (int)Month.January);            
        }

        [Test]
        public void ConvertToInt()
        {
            Assert.AreEqual(1, Month.January.ConvertTo<int>());
        }

        [Test]
        public void FromInt()
        {
            Assert.AreEqual(Month.January, 1.ConvertTo<Month>());            
        }

        [Test]
        public void FromString()
        {
            Assert.AreEqual(Month.January, "January".ConvertTo<Month>());
            Assert.AreEqual(Month.April, "April".ConvertTo<Month>());
        }

        [Test]
        public void FromAbbreviation()
        {
            Assert.AreEqual(Month.January, "Jan".ConvertTo<Month>());
            Assert.AreEqual(Month.April, "Apr".ConvertTo<Month>());
        }
    }
}
{'fraction_non_alphanumeric': 0.11764705882352941, 'fraction_numerical': 0.0034944670937682005, 'mean_word_length': 1.7889610389610389, 'pattern_counts': {'":': 0, '<': 11, '<?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': '5243147', 'n_tokens_mistral': 508, 'n_tokens_neox': 486, 'n_words': 89}