public void Should_Set_MessagePattern(string messagePattern) { // Given var settings = new AppVeyorBuildSettings(); // When settings.MessagePattern = messagePattern; // Then settings.MessagePattern.ShouldBe(messagePattern); }
public void Should_Set_DetailsPattern(string detailsPattern) { // Given var settings = new AppVeyorBuildSettings(); // When settings.DetailsPattern = detailsPattern; // Then settings.DetailsPattern.ShouldBe(detailsPattern); }
public void Should_Throw_If_DetailsPattern_Is_Null() { // Given string detailsPattern = null; var settings = new AppVeyorBuildSettings(); // When var result = Record.Exception(() => settings.DetailsPattern = detailsPattern); // Then result.IsArgumentNullException("value"); }