コード例 #1
0
 public void NoSpecialSymbols_IsParsedCorrectly()
 {
     var(command, text) =
         TextInputParser.ParseText("  The text  ");
     Assert.AreEqual(TextInputCommand.CreateNote, command);
     Assert.AreEqual("The text", text);
 }
コード例 #2
0
 public void SlashTAndNoText_AreParsedCorrectly()
 {
     var(command, text) =
         TextInputParser.ParseText("/t  ");
     Assert.AreEqual(TextInputCommand.StopTask, command);
     Assert.AreEqual("", text);
 }
コード例 #3
0
 public void SlashPinAndText_AreParsedCorrectly()
 {
     var(command, text) =
         TextInputParser.ParseText("/pinSome text");
     Assert.AreEqual(TextInputCommand.PinNote, command);
     Assert.AreEqual("Some text", text);
 }
コード例 #4
0
 public void SlashTAndTaskName_AreParsedCorrectly()
 {
     var(command, text) =
         TextInputParser.ParseText("/tNew Task");
     Assert.AreEqual(TextInputCommand.StartTask, command);
     Assert.AreEqual("New Task", text);
 }