Exemple #1
0
        public void CheckDatasetValuesGoodParameters(int dataset)
        {
            DumpingBuffer dbObj = dbMock.Object;

            dbObj.CdDic[dataset].Dpc.dumpingPropertyList[0].Code = "CODE_ANALOG";
            dbObj.CdDic[dataset].Dpc.dumpingPropertyList[1].Code = "CODE_DIGITAL";

            Mock <Value> valMock = new Mock <Value>("2313", 700);

            dbObj.CdDic[dataset].Dpc.dumpingPropertyList[0].DumpingValue = valMock.Object;
            dbObj.CdDic[dataset].Dpc.dumpingPropertyList[1].DumpingValue = valMock.Object;

            Assert.True(dbObj.CheckDatasetValues(dataset));
        }
Exemple #2
0
        public void CheckDatasetValuesBadParameters(int dataset)
        {
            DumpingBuffer dbObj = dbMock.Object;

            Assert.False(dbObj.CheckDatasetValues(dataset));
        }