public async Task should_tag_incident_when_collectionBuilder_is_used() { var methodName = nameof(should_tag_incident_when_collectionBuilder_is_used); var id = Guid.NewGuid().ToString(); try { throw new InvalidDataException(methodName + " " + id); } catch (Exception ex) { var collection = CollectionBuilder.CreateTags("max", "overdrive"); Err.Report(ex, collection); } var incident = await _client.GetIncident(methodName, id); incident.Tags.Should().Contain("max"); incident.Tags.Should().Contain("overdrive"); }
public void should_include_tags_as_a_comma_separated_list() { var actual = CollectionBuilder.CreateTags("csharp", "ado.net"); actual.Properties["ErrTags"].Should().Be("csharp,ado.net"); }
public void should_not_be_able_to_Set_null_as_that_indicates_an_logical_Error_somewhere_in_the_code() { Action actual = () => CollectionBuilder.CreateTags(null); actual.Should().Throw <ArgumentNullException>(); }
public void should_not_be_able_to_Set_an_Empty_array_as_that_indicates_an_logical_Error_somewhere_in_the_code() { Action actual = () => CollectionBuilder.CreateTags(); actual.ShouldThrow <ArgumentOutOfRangeException>(); }