From: <her...@ec...> - 2004-02-02 09:50:14
|
dot...@li... escribio: >> heh... i guess you'll have to work hard to do that. >> :-( > > If it provides value... Oh! I'm sure it does! >> my work was a proof of concept. i'm not using cvs >> to >> record changes by now. i started porting from the >> dotnetmock official distrib. alas, i rearranged the >> directories sources to allow mass source changes >> inside visual studio since that's our build tool in here. >> >> if you are still interested i can send you the >> project. > > What do you mean by 'mass source changes'? In csUnit theres a class called Assert which has methods like .Equals, .Less, .ReferenceEquals and such. Besides, the order of the parameters is different. So the idiom is: Assert.{CompareMethod}(expectedObj, actualObj [,message]); >> can't tell right now. i'm just starting to using >> it. >> still, one problem that i couldn't solve neither >> investigate was the assert in > <snip....> > > Ah, I see. I think the datatable.equals test was to > see if the table passed in equals the table given. > > I am not sure that it does a 'data' equals, just a > object reference comparision. Are you sure they're supposed to be the SAME object? Could you check in your version if an Assert.Same pass? If so, there's a bug somewhere in my port because both DataTable's have the same schema but they're definitely different objects. > ... > One word of warning, the IDataParamterCollection > interface does NOT specify a strongly type Add method, > so you can't do this: > > IDbCommand.Parameters.Add( IDataParamter ) > > for some reason, MS stopped short of defining the > interface for IDataParamterCollection. > > It works fine if you do this: > > SqlCommand.Parameters.Add( SqlParameter ) > > go figure.... ugh... Thanks for the warning. Better now than later: less code to refactor ;-) > Also, check out the DotNetMock wiki at > dotnetmock.sourceforge.net > > I am always putting new info up there, and you are > welcome to add to it. I had it bookmarked, thanks. Regards, -Hernan ________________________________________________________________________________________ Este mensaje ha sido analizado y protegido por la tecnologia antivirus www.trendmicro.es |