public void CreateContinueCommand() { // Arrange const int commandId = 3; const SteppingKind stepping = SteppingKind.Out; // Act var continueCommand = new ContinueCommand(commandId, stepping); // Assert Assert.AreEqual(commandId, continueCommand.Id); Assert.AreEqual( string.Format( "{{\"command\":\"continue\",\"seq\":{0},\"type\":\"request\",\"arguments\":{{\"stepaction\":\"{1}\",\"stepcount\":1}}}}", commandId, stepping.ToString().ToLower()), continueCommand.ToString()); }
public void CreateContinueCommandWithOptionalParameters() { // Arrange const int commandId = 3; const SteppingKind stepping = SteppingKind.Out; const int stepCount = 3; // Act var continueCommand = new ContinueCommand(commandId, stepping, stepCount); // Assert Assert.AreEqual(commandId, continueCommand.Id); Assert.AreEqual( string.Format( "{{\"command\":\"continue\",\"seq\":{0},\"type\":\"request\",\"arguments\":{{\"stepaction\":\"{1}\",\"stepcount\":{2}}}}}", commandId, stepping.ToString().ToLower(CultureInfo.InvariantCulture), stepCount), continueCommand.ToString()); }