public void SimpleNameFormatTest()
        {
            IMetricNameFormatter formatter = new DefaultMetricNameFormatter();
            string name = "hi";
            string[] parameters = {"one"};
            string formatValue = formatter.Format(name, null);

            Assert.AreEqual(name, formatValue);

            formatValue = formatter.Format(name, parameters);
            Assert.AreEqual("hi.one", formatValue);
        }
 public void BracketNameFormatTest()
 {
     IMetricNameFormatter formatter = new DefaultMetricNameFormatter();
     string name = "this.is.strange[hi][how][are][you]";
     string[] parameters = { "one", "two", "three" };
     string formatValue = formatter.Format(name, parameters);
     Assert.AreEqual("this.is.strange.one.two.three[hi][how][are][you]", formatValue);
 }
        public void ComplexNameFormatTest()
        {
            IMetricNameFormatter formatter = new DefaultMetricNameFormatter();
            string name = "hi.how.are.you";
            string[] parameters = { "one", "two", "three" };
            string formatValue = formatter.Format(name, parameters);

            Assert.AreEqual("hi.how.are.you.one.two.three", formatValue);
        }