public void Constructor_WithCommandAndParam_ShouldHaveTheParameter() { var parameters = new Dictionary<string, string> {{"Initial", "1"}}; var cmd = new SymCommand("Command", parameters); cmd.HasParameter("Initial").Should().BeTrue(); }
public void Constructor_WithCommandAndParam_ShouldHaveTheParameter() { var parameters = new Dictionary <string, string> { { "Initial", "1" } }; var cmd = new SymCommand("Command", parameters); cmd.HasParameter("Initial").Should().BeTrue(); }
public void Parse_WithParameter_ShouldHaveTheSpecifiedParameter() { SymCommand cmd = SymCommand.Parse("CommandMessage~Parameter1=RandomValue"); cmd.HasParameter("Parameter1").Should().BeTrue(); }
public void Constructor_NoArguments_ShouldHaveParameterMsgId() { var cmd = new SymCommand(); cmd.HasParameter("MsgId").Should().BeTrue(); }
public void Parse_WithParameterWithNoValue_ShouldHaveParameter() { SymCommand cmd = SymCommand.Parse("CommandMessage~Parameter1"); cmd.HasParameter("Parameter1").Should().BeTrue(); }
public void Constructor_WithCommand_ShouldHaveParameterMsgId() { var cmd = new SymCommand("Command"); cmd.HasParameter("MsgId").Should().BeTrue(); }