public void ValidationShouldThrowException(string value) { var sut = Assert.Throws <ArgumentException>(() => TeamsMessageHelper.GuardUrlString(value, WebhookUrlParamName)); Assert.Equal(WebhookUrlParamName, sut.ParamName); }
public void ValidationShouldSuccess(string value) { var sut = Record.Exception(() => TeamsMessageHelper.GuardUrlString(value, WebhookUrlParamName)); Assert.Null(sut); }
internal void ValidateTeamsAttribute(TeamsAttribute attribute, Type pramType) { TeamsMessageHelper.GuardUrlString(attribute.WebhookUrl, nameof(attribute.WebhookUrl)); }