8000 Added test for issue 613 · dotnet-script/dotnet-script@6dcd3d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6dcd3d2

Browse files
committed
Added test for issue 613
1 parent 456414a commit 6dcd3d2

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/Dotnet.Script.Tests/ScriptExecutionTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,13 @@ public void ShouldThrowMeaningfulErrorMessageWhenDependencyIsNotFound()
351351
}
352352
}
353353

354+
[Fact]
355+
public void ShouldHandleIssue613()
356+
{
357+
var result = ScriptTestRunner.Default.ExecuteFixture("Issue613");
358+
Assert.Equal(0, result.exitCode);
359+
}
360+
354361
[Fact]
355362
public void ShouldHandleIssue235()
356363
{
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#r "nuget: System.Text.Encoding.CodePages, 5.0.0"
2+
3+
public class Script
4+
{
5+
public static void Run()
6+
{
7+
try
8+
{
9+
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
10+
}
11+
catch (Exception ex)
12+
{
13+
System.Console.WriteLine(ex.ToString());
14+
}
15+
}
16+
}
17+
18+
Script.Run();

0 commit comments

Comments
 (0)
0