473,382 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Testing using Nunit

Hi

I am new to Nunit, I have a method getdata()
which will call another method

Filterparam()
{
paras[0] = new SqlParameter("@xyz", null);
paras[1] = new SqlParameter("@ppp", null);
paras[2] = new SqlParameter("@date", null);
paras[3] = new SqlParameter("dateto", null);
paras[4] = new SqlParameter("@someid", null);
paras[5] = new SqlParameter("@adpcode", null);

Switch(...)
{
case i
paras[0].Value = somevalue;
case v
paras[2].Value = othervalue;
..
...
}
}

Based on the above selection the params will be sent a stored proc and the result set is displayed.

Can you suggest how can i write a Nunit test case for this Kind of scenario.

Thanks in advance
Feb 18 '11 #1
0 966

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Edwin Yip | last post by:
Dear all, coding a test classes for classes being tested is really boring, is there any tool can generate 'test cases'?
1
by: Glenn | last post by:
Hi, I have a web site that ASP.NET that I am trying to stress test under a number of different scenarios. This site uses forms authentication and each user of the system cannot be logged in...
0
by: softwareakash | last post by:
Hi All, I am trying to use nAnt for my project. Currently I am facing the problem with running my UniT test cases from within nAnt. I need to run nunit-console.exe from my nAnt build file. For...
0
by: swiftanthony | last post by:
Hi, I am currently trialing TDD (Test Driven Development) and have had good results so far. I recently heard about NMock and decided to give it a try, unfortunately I seem to be falling at the...
1
by: NW Technicals | last post by:
I have a web application which is developed as a layered projects. To test this project(s) I have written Unit Tests to cover the DataAccessLayer etc., DAL access the ConnectionString etc.,...
1
by: nyathancha | last post by:
Hi, I am using WSE to implement security using x509 certificates. This works when I use a windows client but throws an exception when I use NUnit. My Code looks as follows : UsernameToken...
1
by: Brett_A | last post by:
I have a SQL server db set up locally. I have a local DSN set up. I have DW connected to the SQL server db and can create Bindings and use Server Behaviors without any problem. When I try...
0
by: jyoti sheth | last post by:
Hi, I got task to perform API testing using python & I don't have any knowledge of API testing it would be a gre8 help if anyone can give pointers for learning API testing using python (any...
2
by: Mark Elliott | last post by:
Hi All, I'm just playing with asp.net mvc and link-to-sql for the first time. I'm using visual web developer 2008. I create the project fine, choose nunit as my test framework in the wizard. ...
1
by: ThanujaWick | last post by:
hey, I have a dll project which (has a class, for instance class A that) reads a filepath from its app.config. But when i try to test that project with nunit tests, class A doesnt read the values...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.