private GetFeatureNameExposed ( ) : FeatureDescriptor | ||
리턴 | FeatureDescriptor |
public void SetThreadScopedFeatureName_WithoutFeatureGroupSpecified_SetsFeatureGroupToGlobal() { SensorBase.SetThreadScopedFeatureName("test"); var sensor = new SensorTestDouble("test"); Assert.That(sensor.GetFeatureNameExposed().Group, Is.EqualTo(FeatureStatistics.GlobalGroupName)); }
public void GetFeatureName_WithFeatureName_SetsFeatureNameForAllReadingsAdded() { string featureName = "Feature1"; var sensor = new SensorTestDouble("readingName") { FeatureName = featureName }; Assert.That(sensor.GetFeatureNameExposed().Name, Is.EqualTo(featureName)); }
public void GetFeatureName_WhenFeatureNameIsInThreadContext_ReturnsTheOneFromTheThreadContext() { string featureName = "datapointName"; SensorBase.SetThreadScopedFeatureName(featureName); var sensor = new SensorTestDouble("test"); Assert.That(sensor.GetFeatureNameExposed().Name, Is.EqualTo(featureName)); }
public void ClearThreadScoredFeatureName_AfterSettingFeatureNameToTest_ReturnsApplication() { string featureName = "datapointName"; SensorBase.SetThreadScopedFeatureName(featureName); var sensor = new SensorTestDouble("test"); SensorBase.ClearThreadScopedFeatureName(); Assert.That(sensor.GetFeatureNameExposed().Name, Is.EqualTo("Application")); }
public void GetFeatureName_WhenFeatureNameIsInThreadContext_ReturnsTheOneFromTheThreadContext() { string featureName = "datapointName"; SensorBase.SetThreadScopedFeatureName(featureName); var sensor = new SensorTestDouble("test"); Assert.That(sensor.GetFeatureNameExposed().Name, Is.EqualTo(featureName)); }
public void SetThreadScopeFeatureName_WithFeatureGroupSpecified_SetsFeatureGroupAccordingly() { string testGroup = "testGroup"; SensorBase.SetThreadScopedFeatureName("test", testGroup); var sensor = new SensorTestDouble("test"); Assert.That(sensor.GetFeatureNameExposed().Group, Is.EqualTo(testGroup)); }
public void GetFeatureName_WithFeatureName_SetsFeatureNameForAllReadingsAdded() { string featureName = "Feature1"; var sensor = new SensorTestDouble("readingName") { FeatureName = featureName }; Assert.That(sensor.GetFeatureNameExposed().Name, Is.EqualTo(featureName)); }
public void ClearThreadScoredFeatureName_AfterSettingFeatureNameToTest_ReturnsApplication() { string featureName = "datapointName"; SensorBase.SetThreadScopedFeatureName(featureName); var sensor = new SensorTestDouble("test"); SensorBase.ClearThreadScopedFeatureName(); Assert.That(sensor.GetFeatureNameExposed().Name, Is.EqualTo("Application")); }
public void SetThreadScopeFeatureName_WhenFeatureGroupIsSetBothInSensorAndInThreadContext_TheSensorValueIsUsed() { SensorBase.SetThreadScopedFeatureName("test", "threadScopedGroup"); string sensorGroup = "SensorGroup"; var sensor = new SensorTestDouble("test") { FeatureName = "Name", FeatureGroup = sensorGroup }; Assert.That(sensor.GetFeatureNameExposed().Group, Is.EqualTo(sensorGroup)); }
public void SetThreadScopedFeatureName_WithoutFeatureGroupSpecified_SetsFeatureGroupToGlobal() { SensorBase.SetThreadScopedFeatureName("test"); var sensor = new SensorTestDouble("test"); Assert.That(sensor.GetFeatureNameExposed().Group, Is.EqualTo(FeatureStatistics.GlobalGroupName)); }
public void AddReading_WhenNoDataPointNameAvailable_SetsReadingNameTo_Application() { var sensor = new SensorTestDouble("test"); Assert.That(sensor.GetFeatureNameExposed().Name, Is.EqualTo("Application")); }
public void SetThreadScopeFeatureName_WithFeatureGroupSpecified_SetsFeatureGroupAccordingly() { string testGroup = "testGroup"; SensorBase.SetThreadScopedFeatureName("test", testGroup); var sensor = new SensorTestDouble("test"); Assert.That(sensor.GetFeatureNameExposed().Group, Is.EqualTo(testGroup)); }
public void SetThreadScopeFeatureName_WhenFeatureGroupIsSetBothInSensorAndInThreadContext_TheSensorValueIsUsed() { SensorBase.SetThreadScopedFeatureName("test", "threadScopedGroup"); string sensorGroup = "SensorGroup"; var sensor = new SensorTestDouble("test") { FeatureName = "Name", FeatureGroup = sensorGroup }; Assert.That(sensor.GetFeatureNameExposed().Group, Is.EqualTo(sensorGroup)); }
public void AddReading_WhenNoDataPointNameAvailable_SetsReadingNameTo_Application() { var sensor = new SensorTestDouble("test"); Assert.That(sensor.GetFeatureNameExposed().Name, Is.EqualTo("Application")); }