public void Label_text_is_properly_escaped() { Assert.Equal(@"help\nnewline", PrometheusConventions.EscapeLabel("help\nnewline")); Assert.Equal(@"a\\b", PrometheusConventions.EscapeLabel("a\\b")); Assert.Equal(@"it's not \""OK\""", PrometheusConventions.EscapeLabel("it's not \"OK\"")); Assert.Equal(@"complex\nexample\\with\\multiple\""escapes\""\n", PrometheusConventions.EscapeLabel("complex\nexample\\with\\multiple\"escapes\"\n")); }
public void Label_text_is_properly_escaped() { Assert.Equal(@"help\nnewline", PrometheusConventions.EscapeLabel("help\nnewline")); Assert.Equal(@"a\b", PrometheusConventions.EscapeLabel("a\\b")); Assert.Equal(@"it's not \""OK\""", PrometheusConventions.EscapeLabel("it's not \"OK\"")); }