public string GetFormattedIndividualAuthors_LastNameFirst_FormatsCorrectly(string input, bool lastNameFirst) { // Arrange var format = new OutputAuthorFormat { LastNameFirst = lastNameFirst }; // Act var result = format.GetFormattedIndividualAuthors(input).ToList(); // Assert Assert.AreEqual(1, result.Count); return(result[0]); }
public string GetFormattedIndividualAuthors_IncludeSuffix_FormatsCorrectly(string input, bool includeSuffix) { // Arrange var format = new OutputAuthorFormat { IncludeSuffix = includeSuffix }; // Act var result = format.GetFormattedIndividualAuthors(input).ToList(); // Assert Assert.AreEqual(1, result.Count); return(result[0]); }
public string GetFormattedIndividualAuthors_AbreviateCharacters_AbbreviatesCorrectly(int?abbreviateChars) { // Arrange var input = "Anthony Author"; var format = new OutputAuthorFormat { AbbreviateFirstNameCharacters = abbreviateChars }; // Act var result = format.GetFormattedIndividualAuthors(input).ToList(); // Assert Assert.AreEqual(1, result.Count); return(result[0]); }