程序运行后会生成运行结果如下:
NUnitLite version 0.2.0
Copyright 2007, Charlie Poole
Runtime Environment -
OS Version: Microsoft Windows CE 5.0.0
.NET Version: 2.0.7045.0
4 Tests : 0 Errors, 1 Failures, 0 Not Run
Errors and Failures:
1) ExecuteReaderTest (TestNameSpace.SqlCeHelperTest.ExecuteReaderTest)
Expected: True
But was: False
at TestNameSpace.SqlCeHelperTest.ExecuteReaderTest()
at System.Reflection.RuntimeMethodInfo.InternalInvoke()
at System.Reflection.RuntimeMethodInfo.InternalInvoke()
at System.Reflection.RuntimeMethodInfo.Invoke()
at System.Reflection.MethodBase.Invoke()
at NUnitLite.Reflect.InvokeMethod()
at NUnitLite.TestCase.InvokeMethod()
at NUnitLite.TestCase.RunTest()
at NUnitLite.TestCase.RunBare()
at NUnitLite.TestCase.Run()
at NUnitLite.TestCase.Run()
at NUnitLite.TestSuite.Run()
at NUnitLite.TestSuite.Run()
at NUnitLite.Runner.TestRunner.Run()
at NUnitLite.Runner.TestRunner.Run()
at NUnitLite.Runner.TextUI.Run()
at NUnitLite.Runner.TextUI.Execute()
at TestNameSpace.TestForm.Main()
Copyright 2007, Charlie Poole
Runtime Environment -
OS Version: Microsoft Windows CE 5.0.0
.NET Version: 2.0.7045.0
4 Tests : 0 Errors, 1 Failures, 0 Not Run
Errors and Failures:
1) ExecuteReaderTest (TestNameSpace.SqlCeHelperTest.ExecuteReaderTest)
Expected: True
But was: False
at TestNameSpace.SqlCeHelperTest.ExecuteReaderTest()
at System.Reflection.RuntimeMethodInfo.InternalInvoke()
at System.Reflection.RuntimeMethodInfo.InternalInvoke()
at System.Reflection.RuntimeMethodInfo.Invoke()
at System.Reflection.MethodBase.Invoke()
at NUnitLite.Reflect.InvokeMethod()
at NUnitLite.TestCase.InvokeMethod()
at NUnitLite.TestCase.RunTest()
at NUnitLite.TestCase.RunBare()
at NUnitLite.TestCase.Run()
at NUnitLite.TestCase.Run()
at NUnitLite.TestSuite.Run()
at NUnitLite.TestSuite.Run()
at NUnitLite.Runner.TestRunner.Run()
at NUnitLite.Runner.TestRunner.Run()
at NUnitLite.Runner.TextUI.Run()
at NUnitLite.Runner.TextUI.Execute()
at TestNameSpace.TestForm.Main()
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/