public void CheckParameterThrowPlcException4Test()
        {
            Mock<IWafer> wafer1 = new Mock<IWafer>();
            wafer1.Setup(x => x.CassetteNumber).Returns(11);
            wafer1.Setup(x => x.SlotNumber).Returns(3);

            // invalid cassete number - upper limit
            Mock<IWafer> wafer2 = new Mock<IWafer>();
            wafer2.Setup(x => x.CassetteNumber).Returns(13);
            wafer2.Setup(x => x.SlotNumber).Returns(4);

            List<IWafer> wafers = new List<IWafer>();
            wafers.Add(wafer1.Object);
            wafers.Add(wafer2.Object);

            WafersToStreamConverter_Accessor target = new WafersToStreamConverter_Accessor();
            target.CheckParameter(wafers);
        }
 public void CheckParameterThrowPlcException2Test()
 {
     WafersToStreamConverter_Accessor target = new WafersToStreamConverter_Accessor();
     target.CheckParameter(PlcHelper.GetWaferList(0, 1));
 }
 public void CheckParameterTest()
 {
     WafersToStreamConverter_Accessor target = new WafersToStreamConverter_Accessor();
     Assert.AreEqual<bool>(true, target.CheckParameter(PlcHelper.GetWaferList(5, 1)));
 }