public void ParseNameNullException() { // Arrange. const string nameString = null; var parser = new TaskParser(); // Act and assert. var name = parser.ParseName(nameString); }
public void ParseNameReturnsVanillaName() { // Arrange. const string expectedName = "name"; var parser = new TaskParser(); // Act. var name = parser.ParseName(expectedName); // Assert. Assert.AreEqual(expectedName, name); }
public void ParseNameReturnsTrimmedName() { // Arrange. const string nameString = " name "; var expectedName = nameString.Trim(); var parser = new TaskParser(); // Act. var name = parser.ParseName(nameString); // Assert. Assert.AreEqual(expectedName, name); }