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); }
public void DumpingBufferDicFillNullParameters(int dataset, string code) { DumpingBuffer dbObj = dbMock.Object; Assert.Throws <ArgumentNullException>(() => { dbObj.DumpingBufferDicFill(false, null, false, dataset, code); }); }
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); }); }