|
nunit中run操作,提示:
cdc_test.Instertest.Add:System.NullReferenceException:未将对象引用到对象的实例
下面还有一系例提示:
at CDCSystem.SystemConfig.GetSettings() in D:\CDC\CDCSystem\Config.cs:line 22
at CDCData.DataBase.OracleHelper.get_ConnectionString() in D:\CDC\CDCData\DataBase\OracleHelper.cs:line 44
at CDCData.DataBase.OracleHelper.Execute(String strSql, Int32& ret) in D:\CDC\CDCData\DataBase\OracleHelper.cs:line 2329
at CDCBussiness.BaseInfo.Profession.Insert(String jobcode, String jobname) in d:\cdc\cdcbussiness\baseinfo\profession.cs:line 40
at cdc_test.InsterTest.Add() in d:\cdc\cdc_test\class1.cs:line 19
这应该是引用的问题而不是数据库的问题吧?
问题出在哪里呢
我的test中引用:
using System;
using NUnit.Framework;
using CDCData.DataBase;
using CDCBussiness.BaseInfo;
using System.Data; |
|