Exemplo n.º 1
0
        public void MetricCollection_Ctor_Initializer()
        {
            var col = new MetricCollection
            {
                new Metric(MetricType.EventLog, "m", true)
            };

            Assert.IsTrue(col.Get(MetricType.EventLog).Title == "m");
        }
Exemplo n.º 2
0
        public void MetricCollection_Get()
        {
            var metric = new Metric(MetricType.EventLog, "m", true);

            var col = new MetricCollection
            {
                metric
            };

            Assert.AreSame(metric, col.Get(MetricType.EventLog));
        }