public void TestStatValueGetColor_TaExcessRate(double taExcessRate, string expectedColor)
        {
            _field.FieldName = "邻区距离分析";
            _service         = new RuInterferenceTaService(_stat);
            _field.AutoGenerateIntervals(8);
            AsserOriginalColors();
            _stat.TaExcessRate = taExcessRate;
            string colorString = _service.GetColor(_field);

            Assert.AreEqual(colorString, expectedColor);
        }
示例#2
0
 public void TestStatValueGetColor_InterferenceSource(double ratio, int victimCells,
     string expectedColor)
 {
     _field.FieldName = "干扰源分析";
     _service = new RuInterferenceSourceService(_stat);
     _field.AutoGenerateIntervals(8);
     AsserOriginalColors();
     _stat.InterferenceRatio = ratio;
     _stat.VictimCells = victimCells;
     string colorString = _service.GetColor(_field);
     Assert.AreEqual(colorString, expectedColor);
 }
示例#3
0
 public void TestStatValueGetColor_InterferenceDistance(double taAverage, double averageRtd,
     string expectedColor)
 {
     _field.FieldName = "干扰距离分析";
     _service = new RuInterferenceDistanceService(_stat);
     _field.AutoGenerateIntervals(8);
     AsserOriginalColors();
     _stat.TaAverage = taAverage;
     _stat.AverageRtd = averageRtd;
     string colorString = _service.GetColor(_field);
     Assert.AreEqual(colorString, expectedColor, "colorString");
 }
        public void TestStatValueGetColor_InterferenceDistance(double taAverage, double averageRtd,
                                                               string expectedColor)
        {
            _field.FieldName = "干扰距离分析";
            _service         = new RuInterferenceDistanceService(_stat);
            _field.AutoGenerateIntervals(8);
            AsserOriginalColors();
            _stat.TaAverage  = taAverage;
            _stat.AverageRtd = averageRtd;
            string colorString = _service.GetColor(_field);

            Assert.AreEqual(colorString, expectedColor, "colorString");
        }
        public void TestStatValueGetColor_InterferenceSource(double ratio, int victimCells,
                                                             string expectedColor)
        {
            _field.FieldName = "干扰源分析";
            _service         = new RuInterferenceSourceService(_stat);
            _field.AutoGenerateIntervals(8);
            AsserOriginalColors();
            _stat.InterferenceRatio = ratio;
            _stat.VictimCells       = victimCells;
            string colorString = _service.GetColor(_field);

            Assert.AreEqual(colorString, expectedColor);
        }
示例#6
0
 public void TestStatValueGetColor_TaExcessRate(double taExcessRate, string expectedColor)
 {
     _field.FieldName = "邻区距离分析";
     _service = new RuInterferenceTaService(_stat);
     _field.AutoGenerateIntervals(8);
     AsserOriginalColors();
     _stat.TaExcessRate = taExcessRate;
     string colorString = _service.GetColor(_field);
     Assert.AreEqual(colorString, expectedColor);
 }