Click here to Skip to main content
15,914,419 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Login/Logout Problem Pin
Sundeep Ganiga1-Apr-09 22:53
Sundeep Ganiga1-Apr-09 22:53 
AnswerRe: Login/Logout Problem Pin
specialdreamsin1-Apr-09 23:09
specialdreamsin1-Apr-09 23:09 
AnswerRe: Login/Logout Problem Pin
specialdreamsin1-Apr-09 21:54
specialdreamsin1-Apr-09 21:54 
AnswerRe: Login/Logout Problem [modified] Pin
kumar_k5081-Apr-09 23:18
kumar_k5081-Apr-09 23:18 
AnswerRe: Login/Logout Problem Pin
Alok Sharma ji2-Apr-09 12:56
Alok Sharma ji2-Apr-09 12:56 
QuestionUnterminated string constant Pin
rakeshs3121-Apr-09 18:28
rakeshs3121-Apr-09 18:28 
AnswerRe: Unterminated string constant Pin
Piyush Vardhan Singh1-Apr-09 20:03
Piyush Vardhan Singh1-Apr-09 20:03 
QuestionVS 2008 Unit Testing Null Exception Error Pin
dboy2211-Apr-09 15:59
dboy2211-Apr-09 15:59 
Hi,

I am attempting to unit test some code i have written. Unfortunately I am having an issue when using a generic list of an object type I have defined. I'm basically checking to see that this list is equal to 0 and if it is return false. However when the check is performed I get a null exception error. Below is an example (not exact code) of the code I'm trying to test and the bold and underline is where i'm receiving the error. Thanks in advance to all that reply.

private Car _car = new Car();

//constructor
public CarValidation(Car carDetails)
{
if (carDetails == null)
throw new ArgumentNullException();
else
_car = carDetails;
}

public bool CheckForValues()
{
bool valid = true;

if(_car.OilPressure == null)
valid = false;

if (_car.TirePressure == null)
valid = false;

if (_car.GasAmount == null)
valid = false;

if (_car.Mp3SongsLoaded.Count == 0)
valid = false;

return valid;
}

AnswerRe: VS 2008 Unit Testing Null Exception Error Pin
N a v a n e e t h1-Apr-09 17:15
N a v a n e e t h1-Apr-09 17:15 
QuestionExporting Grdiview using itextsharp Pin
Mfzc1-Apr-09 14:02
Mfzc1-Apr-09 14:02 
QuestionHow to configure web app to allow strong type parameters in web service??? Pin
Member 39190491-Apr-09 13:47
Member 39190491-Apr-09 13:47 
QuestionHow I can convert my '<%# Eval.......%>' code in Page.aspx to Page.aspx.vb ? Pin
Saba021-Apr-09 12:31
Saba021-Apr-09 12:31 
AnswerRe: How I can convert my '<%# Eval.......%>' code in Page.aspx to Page.aspx.vb ? Pin
N a v a n e e t h1-Apr-09 17:19
N a v a n e e t h1-Apr-09 17:19 
Questionhow do I suppress specific warning messages Pin
MakingALiving1-Apr-09 9:13
MakingALiving1-Apr-09 9:13 
AnswerRe: how do I suppress specific warning messages Pin
mr_muskurahat1-Apr-09 21:59
mr_muskurahat1-Apr-09 21:59 
GeneralRe: how do I suppress specific warning messages Pin
MakingALiving2-Apr-09 2:22
MakingALiving2-Apr-09 2:22 
GeneralRe: how do I suppress specific warning messages Pin
mr_muskurahat2-Apr-09 7:36
mr_muskurahat2-Apr-09 7:36 
GeneralRe: how do I suppress specific warning messages Pin
MakingALiving2-Apr-09 9:30
MakingALiving2-Apr-09 9:30 
QuestionProblem displaying aspx file Pin
StuffyEst1-Apr-09 8:54
StuffyEst1-Apr-09 8:54 
AnswerRe: Problem displaying aspx file Pin
MakingALiving1-Apr-09 9:44
MakingALiving1-Apr-09 9:44 
GeneralRe: Problem displaying aspx file Pin
StuffyEst1-Apr-09 11:03
StuffyEst1-Apr-09 11:03 
GeneralRe: Problem displaying aspx file Pin
MakingALiving2-Apr-09 2:34
MakingALiving2-Apr-09 2:34 
GeneralRe: Problem displaying aspx file Pin
StuffyEst2-Apr-09 11:17
StuffyEst2-Apr-09 11:17 
Questionmaking available all features of an worddocument Pin
praveenjakkuva1-Apr-09 6:33
praveenjakkuva1-Apr-09 6:33 
AnswerRe: making available all features of an worddocument Pin
Colin Angus Mackay1-Apr-09 6:49
Colin Angus Mackay1-Apr-09 6:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.