<commit_before>﻿using System.Xml.Linq;
using NUnit.Framework;
using OmniSharp.AddReference;
using Should;

namespace OmniSharp.Tests.AddReference
{
    [TestFixture]
    public class AddGacReferenceTests : AddReferenceBase
    {
         [Test]
         public void CanAddGacAssemblyReference()
         {
             var project = CreateDefaultProject();
             Solution.Projects.Add(project);

             var expectedXml = XDocument.Parse(@"
                <Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
                    <ItemGroup>
                        <Compile Include=""Test.cs""/>
                    </ItemGroup>
                    <ItemGroup>
                        <Reference Include=""System.Web.Mvc"" />
                    </ItemGroup>
                </Project>");

             var request = new AddReferenceRequest
             {
                 Reference = @"System.Web.Mvc",
                 FileName = @"c:\test\one\test.cs"
             };

             var handler = new AddReferenceHandler(Solution, new AddReferenceProcessorFactory(Solution, new IReferenceProcessor[]{new AddProjectReferenceProcessor(Solution) }));
             handler.AddReference(request);

             project.AsXml().ToString().ShouldEqual(expectedXml.ToString());

         }

        [Test]<commit_msg>Ignored GAC tests for now<commit_after>﻿using System.Xml.Linq;
using NUnit.Framework;
using OmniSharp.AddReference;
using Should;

namespace OmniSharp.Tests.AddReference
{
    [TestFixture]
    public class AddGacReferenceTests : AddReferenceBase
    {
         [Test,Ignore]
         public void CanAddGacAssemblyReference()
         {
             var project = CreateDefaultProject();
             Solution.Projects.Add(project);

             var expectedXml = XDocument.Parse(@"
                <Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
                    <ItemGroup>
                        <Compile Include=""Test.cs""/>
                    </ItemGroup>
                    <ItemGroup>
                        <Reference Include=""System.Web.Mvc"" />
                    </ItemGroup>
                </Project>");

             var request = new AddReferenceRequest
             {
                 Reference = @"System.Web.Mvc",
                 FileName = @"c:\test\one\test.cs"
             };

             var handler = new AddReferenceHandler(Solution, new AddReferenceProcessorFactory(Solution, new IReferenceProcessor[]{new AddProjectReferenceProcessor(Solution) }));
             handler.AddReference(request);

             project.AsXml().ToString().ShouldEqual(expectedXml.ToString());

         }

        [Test, Ignore]
{'fraction_non_alphanumeric': 0.10541835606339846, 'fraction_numerical': 0.002948765204570586, 'mean_word_length': 1.8095238095238095, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5521486', 'n_tokens_mistral': 691, 'n_tokens_neox': 624, 'n_words': 118}