public void NugetReference(string line, string expectedId, string expectedVersion)
        {
            NugetPackageDirectirveProcessor pr  = new NugetPackageDirectirveProcessor(new Mock <ILogger <NugetPackageDirectirveProcessor> >().Object);
            ScriptAnalyzerResult            res = new ScriptAnalyzerResult();

            pr.Process(res, line, 1);
            Assert.Equal(expectedId, res.NugetPackageReferences.First().Id);
            Assert.Equal(expectedVersion, res.NugetPackageReferences.First().Version);
        }
Esempio n. 2
0
        public void NugetRefrence(string line, string expectedId, string expectedVersion)
        {
            NugetPackageDirectirveProcessor pr = new NugetPackageDirectirveProcessor();
            AnalyserResult res = new AnalyserResult();

            pr.Process(res, line, 1);
            Assert.Equal(expectedId, res.NugetPackages.First().Id);
            Assert.Equal(expectedVersion, res.NugetPackages.First().Version);
        }