public void a_performance_counter_can_be_defined_from_a_category_and_a_counter()
        {
            var counter = new PerformanceCounterDefinition("\\category\\counter");

            Assert.That(counter.CategoryName, Is.EqualTo("category"));
            Assert.That(counter.CounterName, Is.EqualTo("counter"));
            Assert.That(counter.InstanceName, Is.Null);
        }
        public void a_performance_counter_can_be_defined_from_a_category_with_a_particular_instance_and_a_counter()
        {
            var counter = new PerformanceCounterDefinition("\\category(instance)\\counter");

            Assert.That(counter.CategoryName, Is.EqualTo("category"));
            Assert.That(counter.CounterName, Is.EqualTo("counter"));
            Assert.That(counter.InstanceName, Is.EqualTo("instance"));
            Assert.That(counter.AllInstances, Is.False);
        }