Senior & Expert .Net Developers Discussion Forum by Nyros Technologies

HIRE .Net Expert Developers Programmers Coders From India
Ruby on Rails PHP .Net Developers Community, Nyros Technologies, Kakinada
 
Log in  or IF not a member please REGISTER
Username:
Password:   


Keyword
Log in | Profile 

cc.net help

 
Post new topic   Reply to topic    Senior & Expert .Net Developers Discussion Forum by Nyros Technologies Index -> CC.Net
View previous topic :: View next topic  
Author Message
shodhan



Joined: 03 Dec 2007
Posts: 1

PostPosted: Mon Dec 03, 2007 6:48 am    Post subject: cc.net help Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Senior & Expert .Net Developers Discussion Forum by Nyros Technologies Index -> CC.Net
Page 1 of 1

 latest topics 
 Topics   Replies   Author   Views   Last Post 
No new posts How to install iPhone SDK?
0 Ramya sree 6 Fri Mar 12, 2010 11:17 am
Ramya sree View latest post
No new posts Parsing XML using SAX parser in Android
0 vijayalakshmi 7 Fri Mar 12, 2010 4:41 am
vijayalakshmi View latest post
No new posts Show Notification in Status Bar in Android Application
0 vijayalakshmi 18 Tue Mar 09, 2010 9:36 am
vijayalakshmi View latest post
No new posts Changing the date and time in SQL Server using T-SQL
0 muralikrishna 31 Fri Mar 05, 2010 3:18 pm
muralikrishna View latest post
No new posts Using TableLayout in Android Layout file:
0 vijayalakshmi 32 Fri Mar 05, 2010 5:03 am
vijayalakshmi View latest post
No new posts TabActivity with Intents in Android:
0 vijayalakshmi 30 Fri Mar 05, 2010 4:46 am
vijayalakshmi View latest post
No new posts Show different components in different styles in Android?
0 vijayalakshmi 27 Fri Mar 05, 2010 3:39 am
vijayalakshmi View latest post
No new posts VIEWSTATE SIZE BYTES SHOWS 0 IN TRACE.AXD
1 sanjoo8959 41 Wed Mar 03, 2010 9:18 am
Dileep View latest post
No new posts How to mark incoming Sms as read in Android programatically?
0 vijayalakshmi 32 Mon Mar 01, 2010 1:12 pm
vijayalakshmi View latest post
No new posts How to control(Start,Stop) windows Services in C#?
0 Raghavendra 42 Mon Mar 01, 2010 12:57 pm
Raghavendra View latest post




Hire an expert .Net developer / coder / programmer or development team from India now!!

Other Forums : Ruby on Rails   ::   PHP   |   Free unlimited HTML CSS templates download

Nyros Technologies   |   Kakinada City Portal   |   Developers Blog   |   About .Net Experts   |   More