From b12e21cdc0427985e58721f5f46c7b6133147a8c Mon Sep 17 00:00:00 2001 From: Bernhard Richter Date: Fri, 2 Nov 2018 20:26:53 +0100 Subject: [PATCH] Added test with Nuget version range --- src/Dotnet.Script.Tests/ScriptExecutionTests.cs | 7 +++++++ .../TestFixtures/VersionRange/VersionRange.csx | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 src/Dotnet.Script.Tests/TestFixtures/VersionRange/VersionRange.csx diff --git a/src/Dotnet.Script.Tests/ScriptExecutionTests.cs b/src/Dotnet.Script.Tests/ScriptExecutionTests.cs index b7702ee0..fbdfe69e 100644 --- a/src/Dotnet.Script.Tests/ScriptExecutionTests.cs +++ b/src/Dotnet.Script.Tests/ScriptExecutionTests.cs @@ -266,6 +266,13 @@ public void ShouldHandleScriptUsingTheProcessClass() Assert.Contains("Success", result.output); } + [Fact] + public void ShouldHandleNuGetVersionRange() + { + var result = ScriptTestRunner.Default.ExecuteFixture("VersionRange"); + Assert.Contains("AutoMapper.MapperConfiguration", result.output); + } + [Fact] public void ShouldHandleIssue235() { diff --git a/src/Dotnet.Script.Tests/TestFixtures/VersionRange/VersionRange.csx b/src/Dotnet.Script.Tests/TestFixtures/VersionRange/VersionRange.csx new file mode 100644 index 00000000..23133e7b --- /dev/null +++ b/src/Dotnet.Script.Tests/TestFixtures/VersionRange/VersionRange.csx @@ -0,0 +1,4 @@ +#r "nuget: AutoMapper, [6.1.1, 7.0)" + +using AutoMapper; +Console.WriteLine(typeof(MapperConfiguration)); \ No newline at end of file pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy