private static void TestInHouseContamination(LotStat expected, string description) { tblLot oldLot; Lot newLot; ArrangeLots(description, out oldLot, out newLot); Assert.IsTrue(LotSyncHelper.SetInHouseContamination(oldLot, newLot)); Assert.AreEqual((int)expected, oldLot.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 LotStatResult(LotStat lotStat) { LotStat = lotStat; }
private static string GetHoldDescription(LotStat lotStat) { return(string.Format("Set by data load from LotStat[{0}].", lotStat)); }