public void RetrieveMethodNameLabelWithUnderscoreTest() { string expected = "test_label"; string actual = InvocationLabelParser.RetrieveMethodNameFromLabel(ValidMessageLabelUnderscores); Assert.AreEqual(expected, actual); }
public void RetrieveArgumentsEmpty() { List <string> expected1 = new List <string>() { "" }; var actual1 = InvocationLabelParser.RetrieveArgumentsFromLabel(ValidMessageLabelNormal); var expected2 = new List <string>() { "" }; var actual2 = InvocationLabelParser.RetrieveArgumentsFromLabel(ValidMessageLabelWithNumber); var expected3 = new List <string>() { "" }; var actual3 = InvocationLabelParser.RetrieveArgumentsFromLabel(ValidMessageLabelUnderscores); CollectionAssert.AreEqual(expected1, actual1); CollectionAssert.AreEqual(expected2, actual2); CollectionAssert.AreEqual(expected3, actual3); }
public void RetrieveMethodNameLabelWithCapitalsTest() { string expected = "testLABEL"; string actual = InvocationLabelParser.RetrieveMethodNameFromLabel(ValidMessageLabelWithCapitals); Assert.AreEqual(expected, actual); }
public void RetrieveMethodNameLabelWithNumberTest() { string expected = "testlabel2"; string actual = InvocationLabelParser.RetrieveMethodNameFromLabel(ValidMessageLabelWithNumber); Assert.AreEqual(expected, actual); }
public void RetrieveSingleArgument() { List <string> expected = new List <string>() { "arg3" }; var actual = InvocationLabelParser.RetrieveArgumentsFromLabel(ValidMessageLabelWithCapitals); CollectionAssert.AreEqual(expected, actual); }
public void RetrieveMultipleArgumentsWithUpperCase() { List <string> expected = new List <string>() { "Arg1", "ARG2", "aRG3" }; var actual = InvocationLabelParser.RetrieveArgumentsFromLabel(ValidMessageLabelWithCapitalInArguments); CollectionAssert.AreEqual(expected, actual); }
public void RetrieveMultipleArgumentsLowerCase() { List <string> expected = new List <string>() { "arg1", "arg2", "arg3" }; var actual = InvocationLabelParser.RetrieveArgumentsFromLabel(ValidMessageLabelWithArguments); CollectionAssert.AreEqual(expected, actual); }
public void RetrieveMethodNameLabelWithArgumentsTest() { string expected1 = "testlabel"; string actual1 = InvocationLabelParser.RetrieveMethodNameFromLabel(ValidMessageLabelWithArguments); string expected2 = "testlabel"; string actual2 = InvocationLabelParser.RetrieveMethodNameFromLabel(ValidMessageLabelWithCapitalInArguments); Assert.AreEqual(expected1, actual1); Assert.AreEqual(expected2, actual2); }