public void Insert_Test_CommonSettinginfo_From_DB만_Null로_입력시에_CommonSettinginfo_From_LocalFile만_입력_하는지() { CommonSettinginfo si = mocks.Stub <CommonSettinginfo>(); si.CommonSettinginfo_DB = null; si.CommonSettinginfo_LocalFile = new CommonSettinginfo_From_LocalFile(); using (mocks.Record()) { string LocalQuery = LocalQueryHouse.insertSettingInfo(si); LocalModel.SetData(LocalQuery); } objectForTest.Insert(si); mocks.VerifyAll(); }
public void Insert_Test_올바른_값_입력시에_올바르게_작동하는지() { CommonSettinginfo_From_DB si_db = new CommonSettinginfo_From_DB(); CommonSettinginfo_From_LocalFile si_local = new CommonSettinginfo_From_LocalFile(); CommonSettinginfo si = mocks.Stub <CommonSettinginfo>(); si.CommonSettinginfo_DB = si_db; si.CommonSettinginfo_LocalFile = si_local; using (mocks.Record()) { string SQLQuery = sqlQueryHouse.insertSettingInfo(si); dbModel.SetData(SQLQuery); string LocalQuery = LocalQueryHouse.insertSettingInfo(si); LocalModel.SetData(LocalQuery); } objectForTest.Insert(si); mocks.VerifyAll(); }