shodhan
Joined: 03 Dec 2007 Posts: 1
|
Posted: Mon Dec 03, 2007 6:48 am Post subject: cc.net help |
|
|
Hi ,
I have problem in integrating cc.net with NUnit please help me to solve this.
My unit test code in ccnet.config(inside<task> tag) is
<nunit>
<path>"C:\Program Files\NUnit 2.4.3\bin\nunit-console.exe"</path>
<assemblies>
<assembly>F:\AutoBuildSample\src\UnitTest\bin\Debug\ToolTest.dll</assembly>
</assemblies>
</nunit>
(Not using any building tool)
my simple test case is
[TestFixture()]
public class Test
{
Class2 obj2;
[SetUp]
public void init()
{
obj2 = new Class2();
}
[Test]
public void Test1()
{
obj2.sumb(1,1,112);
Assert.AreEqual(37.00,obj2.ProSum,"Not equal");
}
Class2 contains a method for suming 3 numbers.I get this sum number through property.
When i tested this code with nunit-gui it works fine.
When i integrate this code with cc.net above code. i facing problem.
The negative test case which i entered above is showing nunit test success message.
I am receiving the result like this
Last log entry:
Tests run: 1, Failures: 0, Not run: 0, Time: 0.156 seconds
All Tests Passed.
Why test is not failing?
Pleasssssssssssse help me >............ _________________ shodhan kini |
|