public void Returns_true_and_LotStat_would_have_been_set_as_expected_for_defect_with_highest_relative_deviation()
 {
     Assert.AreEqual(LotStat.Low_Water, GetLotStatHelper.GetProductSpecDefectStat(new[]
     {
         BuildProductSpecDefect(StaticAttributeNames.Scan, 10000, 0, 0, false),
         BuildProductSpecDefect(StaticAttributeNames.H2O, 1, 2, 3, false),
         BuildProductSpecDefect(StaticAttributeNames.Asta, 100, 98, 99, false)
     }).LotStat);
 }
        private static void TestProductSpecDefect(LotStat lotStat, AttributeName attributeName, bool tooHigh = true, string description = null)
        {
            var stat = GetLotStatHelper.GetProductSpecDefectStat(new[]
            {
                BuildProductSpecDefect(attributeName, tooHigh ? 4 : 1, 2, 3, false)
            });

            Assert.AreEqual(lotStat, stat.LotStat);
            Assert.AreEqual(description, stat.Description);
        }
 public void Returns_false_and_no_LotStat_will_have_been_set_if_no_unresolved_ProductSpec_defects_exist()
 {
     Assert.IsNull(GetLotStatHelper.GetProductSpecDefectStat(new List <IAttributeDefect>()));
 }