public void ParseContentTypeFailsForInvalidString(string contentType) { Assert.Throws <ArgumentException>(() => NotificationHubClient.ParseContentType(contentType, out _, out _)); }
public void ParseContentTypeSuccessForValidString(string contentType) { NotificationHubClient.ParseContentType(contentType, out var mediaType, out var encoding); Assert.NotEmpty(mediaType); Assert.NotNull(encoding); }