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")); }