--- /dev/null
+/*
+using System.IO;
+Send("1-file-exec-and-symbols dotnet");
+Send("2-exec-arguments " + TestBin);
+
+string filename = Path.GetFileName(TestSource);
+
+Send(String.Format("3-break-insert -f {0}:{1}", filename, Lines["BREAK1"]));
+r = Expect("3^done");
+int id1 = r.Find("bkpt").FindInt("number");
+
+Send(String.Format("4-break-insert -f {0}:{1}", filename, Lines["BREAK2"]));
+r = Expect("4^done");
+int id2 = r.Find("bkpt").FindInt("number");
+
+Send("5-exec-run");
+*/
+using System;
+
+namespace BreakpointAddRemoveTest
+{
+ class Program
+ {
+ static void Main(string[] args)
+ { // //@START@
+/*
+var r = Expect("*stopped");
+Assert.Equal("entry-point-hit", r.FindString("reason"));
+Assert.Equal(Lines["START"], r.Find("frame").FindInt("line"));
+
+Send("6-exec-continue");
+*/
+ Console.WriteLine("Hello World!"); // //@BREAK1@
+/*
+r = Expect("*stopped");
+Assert.Equal("breakpoint-hit", r.FindString("reason"));
+Assert.Equal(Lines["BREAK1"], r.Find("frame").FindInt("line"));
+Assert.Equal(id1, r.FindInt("bkptno"));
+
+Send(String.Format("7-break-delete {0}", id2));
+Expect("7^done");
+
+Send("8-exec-continue");
+r = Expect("*stopped");
+Assert.Equal("exited", r.FindString("reason"));
+*/
+ Console.WriteLine("Hello World!"); // //@BREAK2@
+ }
+ }
+}
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <OutputType>Exe</OutputType>
+ <TargetFramework>netcoreapp2.0</TargetFramework>
+ </PropertyGroup>
+
+</Project>
[Fact]
public void ExceptionTest() => ExecuteTest();
+ [Fact]
+ public void BreakpointAddRemoveTest() => ExecuteTest();
+
public class ProcessInfo
{
public ProcessInfo(string command, ITestOutputHelper output)
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExceptionTest", "ExceptionTest\ExceptionTest.csproj", "{AA120201-343F-4A1D-BDA5-930F9B28DD9A}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BreakpointAddRemoveTest", "BreakpointAddRemoveTest\BreakpointAddRemoveTest.csproj", "{48403D8A-08D8-48FC-BF1B-F0239154AD85}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
{AA120201-343F-4A1D-BDA5-930F9B28DD9A}.Release|x64.Build.0 = Release|x64
{AA120201-343F-4A1D-BDA5-930F9B28DD9A}.Release|x86.ActiveCfg = Release|x86
{AA120201-343F-4A1D-BDA5-930F9B28DD9A}.Release|x86.Build.0 = Release|x86
+ {48403D8A-08D8-48FC-BF1B-F0239154AD85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {48403D8A-08D8-48FC-BF1B-F0239154AD85}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {48403D8A-08D8-48FC-BF1B-F0239154AD85}.Debug|x64.ActiveCfg = Debug|x64
+ {48403D8A-08D8-48FC-BF1B-F0239154AD85}.Debug|x64.Build.0 = Debug|x64
+ {48403D8A-08D8-48FC-BF1B-F0239154AD85}.Debug|x86.ActiveCfg = Debug|x86
+ {48403D8A-08D8-48FC-BF1B-F0239154AD85}.Debug|x86.Build.0 = Debug|x86
+ {48403D8A-08D8-48FC-BF1B-F0239154AD85}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {48403D8A-08D8-48FC-BF1B-F0239154AD85}.Release|Any CPU.Build.0 = Release|Any CPU
+ {48403D8A-08D8-48FC-BF1B-F0239154AD85}.Release|x64.ActiveCfg = Release|x64
+ {48403D8A-08D8-48FC-BF1B-F0239154AD85}.Release|x64.Build.0 = Release|x64
+ {48403D8A-08D8-48FC-BF1B-F0239154AD85}.Release|x86.ActiveCfg = Release|x86
+ {48403D8A-08D8-48FC-BF1B-F0239154AD85}.Release|x86.Build.0 = Release|x86
EndGlobalSection
EndGlobal