public void PcsWeightCreationShouldBeOutOfRangeLower() { PcsWeights testWeight = new PcsWeights("SOFTQUAT", "480-1", "BLUCON", 1333M, 1065M, RecipeTypes.Conc, _pcsToleranceParameter); Assert.AreEqual(true, testWeight.IsOutOfTolerance); Assert.AreEqual(true, testWeight.IsOutOfRange); }
public void PcsWeightCreationShouldSetAllParametersCorrectly() { PcsWeights testWeight = new PcsWeights("SOFTQUAT", "480-1", "BLUCON", 1333, 1333, RecipeTypes.Conc, _pcsToleranceParameter); Assert.AreEqual(false, testWeight.IsOutOfRange); Assert.AreEqual(false, testWeight.IsOutOfTolerance); Assert.AreEqual(RecipeTypes.Conc, testWeight.RecipeType); Assert.AreEqual("BLUCON", testWeight.RecipeName); Assert.AreEqual("480-1", testWeight.BatchNumber, "480-1"); Assert.AreEqual(1333M, testWeight.ActualWeight); Assert.AreEqual(1333M, testWeight.TargetWeight); Assert.AreEqual(1399.65M, testWeight.UpperLimit); Assert.AreEqual(1266.35M, testWeight.LowerLimit); Assert.AreEqual(1599.6M, testWeight.OutOfRangeUpperLimit); Assert.AreEqual(1066.4M, testWeight.OutOfRangeLowerLimit); }