public void JsonSerialization_ReturnsExpected() { var tags = new HashSet <string>() { "tagValue" }; var mtag = new MetricTag("tagname", tags); var result = Serialize(mtag); Assert.Equal("{\"tag\":\"tagname\",\"values\":[\"tagValue\"]}", result); }
public void Constructor_SetsValues() { var tags = new HashSet <string>() { "tagValue" }; var mtag = new MetricTag("tagname", tags); Assert.Equal("tagname", mtag.Tag); Assert.Same(tags, mtag.Values); }