Пример #1
0
        public void DumpingBufferDicFillGoodParameters(int dataset, string code)
        {
            DumpingBuffer dbObj   = dbMock.Object;
            Mock <Value>  mockVal = new Mock <Value>("1337", 100);

            dbObj.DumpingBufferDicFill(false, mockVal.Object, false, dataset, code);
            Assert.AreEqual(dbObj.CdDic[dataset].Dpc.dumpingPropertyList[0].Code, code);
        }
Пример #2
0
        public void DumpingBufferDicFillNullParameters(int dataset, string code)
        {
            DumpingBuffer dbObj = dbMock.Object;

            Assert.Throws <ArgumentNullException>(() =>
            {
                dbObj.DumpingBufferDicFill(false, null, false, dataset, code);
            });
        }
Пример #3
0
        public void DumpingBufferDicFillBadParameters(int dataset, string code)
        {
            DumpingBuffer dbObj   = dbMock.Object;
            Mock <Value>  mockVal = new Mock <Value>("1337", 100);

            Assert.Throws <ArgumentException>(() =>
            {
                dbObj.DumpingBufferDicFill(false, mockVal.Object, false, dataset, code);
            });
        }