<commit_before>﻿using System;
using NUnit.Framework;
using PicklesDoc.Pickles.Extensions;

namespace PicklesDoc.Pickles.Test.Extensions
{
    [TestFixture]
    internal class PathExtensionsTests : BaseFixture
    {
        [Test]
        public void Get_A_Relative_Path_When_Location_Is_Deeper_Than_Root()
        {
            // Arrange
            string root = @"c:\test";
            string location = @"c:\test\blah.feature";

            string expected = @"test\blah.feature";

            // Act
            string actual = PathExtensions.MakeRelativePath(root, location, FileSystem);

            // Assert
            Assert.AreEqual(actual, expected, string.Format("Expected {0} got {1}", expected, actual));
        }

        [Test]
        public void Get_A_Relative_Path_When_Location_Is_Deeper_Than_Root_Even_When_Root_Contains_End_Slash()
        {
            string root = @"c:\test\";
            string location = @"c:\test\blah.feature";
            string expected = @"test\blah.feature";

            string actual = PathExtensions.MakeRelativePath(root, location, FileSystem);

            Assert.AreEqual(actual, expected, string.Format("Expected {0} got {1}", expected, actual));
        }
    }
}<commit_msg>Fixed the RelativePath tests<commit_after>﻿using System;
using NUnit.Framework;
using PicklesDoc.Pickles.Extensions;

namespace PicklesDoc.Pickles.Test.Extensions
{
    [TestFixture]
    internal class PathExtensionsTests : BaseFixture
    {
        [Test]
        public void Get_A_Relative_Path_When_Location_Is_Deeper_Than_Root()
        {
            // Arrange
            string root = @"c:\test";
            string location = @"c:\test\deep\blah.feature";
            string expected = @"deep\blah.feature";

            // Act
            string actual = PathExtensions.MakeRelativePath(root, location, FileSystem);

            // Assert
            Assert.AreEqual(actual, expected, string.Format("Expected {0} got {1}", expected, actual));
        }

        [Test]
        public void Get_A_Relative_Path_When_Location_Is_Deeper_Than_Root_Even_When_Root_Contains_End_Slash()
        {
            string root = @"c:\test\";
            string location = @"c:\test\deep\blah.feature";
            string expected = @"deep\blah.feature";

            string actual = PathExtensions.MakeRelativePath(root, location, FileSystem);

            Assert.AreEqual(actual, expected, string.Format("Expected {0} got {1}", expected, actual));
        }
    }
}
{'fraction_non_alphanumeric': 0.10728582866293035, 'fraction_numerical': 0.0032025620496397116, 'mean_word_length': 2.437414030261348, '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': '6813725', 'n_tokens_mistral': 717, 'n_tokens_neox': 683, 'n_words': 139}