public void Removes_Dollar_Before_Quote_With_At(string line, int cursor, int expected_dollar_index) { var cmd = ToggleDollarCommand.ToggleDollar(line, cursor); AssertReplacement(cmd, expected_dollar_index, 1, ""); }
public void No_Action_If_Cursor_Left_Of_Quote(string line, int cursor) { var cmd = ToggleDollarCommand.ToggleDollar(line, cursor); Assert.True(cmd.do_nothing, "do_nothing"); }
public void Inserts_Dollar_Before_Quote(string line, int cursor, int expected_dollar_index) { var cmd = ToggleDollarCommand.ToggleDollar(line, cursor); AssertReplacement(cmd, expected_dollar_index, 0, "$"); }