8000 Test remote execution of URL of a gzipped script · dotnet-script/dotnet-script@3ced1e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ced1e1

Browse files
committed
Test remote execution of URL of a gzipped script
< 8000 div width="60px" height="22px" class="Box-sc-g0xbh4-0 LoadingSkeleton-sc-695d630a-0 kHfwUD kRBfod">
1 parent aea2f7b commit 3ced1e1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Dotnet.Script.Tests/ScriptExecutionTests.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,15 @@ public void ShouldSupportInlineNugetReferencesWithTrailingSemicoloninEvaluatedCo
241241
Assert.Contains("AutoMapper.MapperConfiguration", result.output);
242242
}
243243

244-
[Fact]
245-
public void ShouldExecuteRemoteScript()
244+
[Theory]
245+
[InlineData("https://gist.githubusercontent.com/seesharper/5d6859509ea8364a1fdf66bbf5b7923d/raw/0a32bac2c3ea807f9379a38e251d93e39c8131cb/HelloWorld.csx",
246+
"Hello World")]
247+
[InlineData("https://github.com/filipw/dotnet-script/files/5035247/hello.csx.gz",
248+
"Hello, world!")]
249+
public void ShouldExecuteRemoteScript(string url, string output)
246250
{
247-
var url = "https://gist.githubusercontent.com/seesharper/5d6859509ea8364a1fdf66bbf5b7923d/raw/0a32bac2c3ea807f9379a38e251d93e39c8131cb/HelloWorld.csx";
248251
var result = ScriptTestRunner.Default.Execute(url);
249-
Assert.Contains("Hello World", result.output);
252+
Assert.Contains(output, result.output);
250253
}
251254

252255
[Fact]

0 commit comments

Comments
 (0)
0