Skip to content

Commit 0aaddfb

Browse files
Debug
1 parent 1d98389 commit 0aaddfb

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/Testing.Databases.SqlServer.SqlCmd/SqlCmdProcess.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@ private SqlCmdProcess(string arguments)
3434
this.process.ErrorDataReceived += this.OnOutputDataReceived;
3535
this.process.OutputDataReceived += this.OnOutputDataReceived;
3636

37-
this.process.Start();
37+
try
38+
{
39+
this.process.Start();
40+
}
41+
catch (Exception ex)
42+
{
43+
throw new DivideByZeroException(Environment.GetEnvironmentVariable("PATH"), ex);
44+
}
3845

3946
this.process.BeginErrorReadLine();
4047
this.process.BeginOutputReadLine();

tests/Testing.Databases.SqlServer.SqlCmd.Tests/SqlCmdDatabaseInitializerTest.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ public SqlCmdDatabaseInitializerTest(SqlServerDatabaseInitializer initializer)
3838
this.database.InsertInto("MyTable", new { Id = 2, Name = "Name 2" });
3939
}
4040

41-
[Fact]
42-
public void Debug()
43-
{
44-
throw new DivideByZeroException(Environment.GetEnvironmentVariable("PATH"));
45-
}
46-
4741
[Fact]
4842
public void Test1()
4943
{

0 commit comments

Comments
 (0)