Beispiel #1
0
        public void AutomaticallSetsFeatureNameInThreadContextWhenFirstMethodIsExecuted()
        {
            AspectTestClass aspectTestClass = new AspectTestClass();

            aspectTestClass.Initialise();
            Assert.That(aspectTestClass.FeatureName, Is.EqualTo("TestFeature"));
        }
        public void FeatureNameIsSetOnlyOncePerClass()
        {
            AspectTestClass aspectTestClass = new AspectTestClass();
            aspectTestClass.Initialise();

            Assert.That(new SensorTestDouble("test").GetFeatureNameExposed().Name, Is.EqualTo("Application"));
        }
        public void FeatureNameIsRemovedWhenMethodExits()
        {
            AspectTestClass aspectTestClass = new AspectTestClass();
            aspectTestClass.Initialise();

            Assert.That(new SensorTestDouble("test").GetFeatureNameExposed().Name, Is.EqualTo("Application"));
        }
Beispiel #4
0
        public void FeatureNameIsSetOnlyOncePerClass()
        {
            AspectTestClass aspectTestClass = new AspectTestClass();

            aspectTestClass.Initialise();

            Assert.That(new SensorTestDouble("test").GetFeatureNameExposed().Name, Is.EqualTo("Application"));
        }
Beispiel #5
0
        public void FeatureNameIsRemovedWhenMethodExits()
        {
            AspectTestClass aspectTestClass = new AspectTestClass();

            aspectTestClass.Initialise();

            Assert.That(new SensorTestDouble("test").GetFeatureNameExposed().Name, Is.EqualTo("Application"));
        }
 public void AutomaticallSetsFeatureNameInThreadContextWhenFirstMethodIsExecuted()
 {
     AspectTestClass aspectTestClass = new AspectTestClass();
     aspectTestClass.Initialise();
     Assert.That(aspectTestClass.FeatureName, Is.EqualTo("TestFeature"));
 }