Ahora el 95 (%) del código que escribo está acompañado de PruebasUnitarias.
Esto significa que cada vez que quiero (ejecutar, depurar, probar..) tengo varias opciones.
1)Abrir NUnit, cargar el assembly y RunTests !
2)Pegarme al proceso con DebugProcess de VS
3) configurar el proyecto para que al ejecutar arranque NUnit.
Esta ultima es la que hago más amenudo, asi que harto de repetir
la misma tarea una y otra vez he decido hacer una macro:
Imports EnvDTE Imports System.Diagnostics Imports VSLangProjPublic Module NUnitProjectEnabler
Private CurrentProject As VSProject
Private Const NUNIT_PATH As String = "c:\Program Files\NUnit V2.0\bin\nunit.framework.dll"
Private Const NUNITGUI_PATH As String = "c:\Program Files\NUnit V2.0\bin\nunit-gui.exe"Private Sub setTargetProject()
CurrentProject = DTE.ActiveSolutionProjects(0).Object
End Sub
Private Sub AddNUnitRef()
CurrentProject.References.Add(NUNIT_PATH)
End SubPrivate Sub SetDebugProperties()
Dim assemblyName As EnvDTE.Property = CType(CurrentProject.Project.Properties.Item("AssemblyName"), EnvDTE.Property)
Dim configProps As Properties = CurrentProject.Project.ConfigurationManager.ActiveConfiguration.Properties
With configProps
.Item("StartAction").Value = prjStartAction.prjStartActionProgram
.Item("StartProgram").Value = NUNITGUI_PATH
.Item("StartArguments").Value = "/assembly:" + assemblyName.Value + ".dll"
End WithEnd Sub
Public Sub EnableProject()
setTargetProject()
AddNUnitRef()
SetDebugProperties()
End Sub
End Module
como veis las rutas estan puestas a "capon"..
Estoy empezando a utilizar esto de los "Unit Test" y me surge una duda... ¿Como pruebas formularios de usuario? Me imagino que pruebas los eventos que disparan los controles, no?
Un saludo.
Buena pregunta. La verdad es que no hay una respuesta fácil a esta pregunta. Basicamente hay dos opciones.
1) Usar una herramienta. Depende del tipo de UI puede ser más o menos factible hacertela tu mismo. Si no quieres hacerla tu, o la plataforma es compleja puedes usar algunas de las comerciales http://www.qalinks.com
2) Separar la logica del UI, y probar la logica separadamente, si necesitas más info busca por MVC.
Posted by: rido on Septiembre 15, 2003 01:57 PMI still maintain the point that designing a monolithic kernel in 1991 is a
fundamental error. Be thankful you are not my student. You would not get a
high grade for such a design :-)
(Andrew Tanenbaum to Linus Torvalds)
fioricet
damn my office is cold.
need a hot secretary to warm it up.
-- Seen on #Linux
buy cialis cheap cialisIf the future navigation system [for interactive networked services on
the NII] looks like something from Microsoft, it will never work.
-- Chairman of Walt Disney Television & Telecommunications
cialis cialis online damn my office is cold.
need a hot secretary to warm it up.
-- Seen on #Linux
those apparently-bacteria-like multicolor worms coming out of
microsoft's backorifice
that's the backoffice logo
buy cialis cheap cialisThe wages of sin are unreported.
cialis cialis online those apparently-bacteria-like multicolor worms coming out of
microsoft's backorifice
that's the backoffice logo
2770 http://www.i--cialis.net
Offering Cialis with overnight delivery. Also, If your looking for generic cialis this is a good site to visit.
5407 .Way to poker online.
2041 http://www.blackjack-1000.com
PlLAY the best blackjack-1000.com
debt consolidation only.
1763 jobs online part time jobs work online work online from home work at home work from home online jobs work at home jobs work at home business jobs
Full time jobs dental plan dental
insurance
dental insurance
plan
discount dental
plans
cheap dental
plans
individual dental
plans
4313 Offering online casino with overnight delivery. Also, If your looking for casino online this is a good site to visit.
Posted by: best online casino on Octubre 29, 2004 01:44 AM4548 You can take Generic Viagra to cure ed. We also offer name brand Viagra for mexican generic viagra also visit this site
Posted by: Generic Viagra on Octubre 29, 2004 02:54 AM8118 http://www.777-blackjack.com
online blackjack
blackjack
Xxx rape rape thumbnails rape sites. Xxx rape free forced sex rAPE PiCturES. Rape gallery tentacle rape rape porn. Male rape domestic violence bondage rape. War rape incest rape MARITAL RAPE. Sexual abuse interracial rape rape fiction fantasy rape stories. Teen rape erotic rape stories raPE thUmbNaiLS BonDaGe RapE. Sexual abuse rape photos free forced sex forced sex fantasy. Rape fantasy stories teen rape FREE RAPE GALLERIES FREE RAPE. Rape comix interracial rape RUSSIAN RAPE. Rape xxx rape images rape websites with screams. Military rape rape fantasy stories TEACHER RAPE. Teacher rape rape porn rape bondage gang rape. Gang violence girl rape GIRL RAPE STORIES OF RAPE. Male rape asian rape RAPE fEtish. Stories of rape rape movies RAPE VICTIM BOY RAPE. Domestic violence bondage rape free rape movies rape pictures. Free rape clips rape thumbnails domeStIC viOLeNcE. Military rape rape fetish violence in movies. Incest rape free rape clips rape poems war rape. Rape sex rape pictures brutal rape. Sexual abuse brutal rape dAtE rapE. Free rape porn rape sex stories GANG RAPE ANIME RAPE. Anal rape rape poems BOY RAPE. Black rape rape comix rApE sCeneS FreE RaPE gaLLERIes. Rape thumbnails lesbian rape RAPE GALLERIES. Girl rape dog rape sexual abuse dog rape. Fantasy rape rape sex stories PRISON RAPE. Rape xxx free rape sex anime rape marital rape. Rape bondage boy rape free rape sex rape fantasies. Torture and rape websites black rape japanese rape. Forced sex gay rape RAPE XXX CARTOON RAPE. Rape pic rape story xxX rAPE. Violence in movies free forced sex TEnTaclE Rape RaPe CoMiX. Free rape stories fantasy rape stories workplace violence. Fantasy rape rape galleries RAPE SEX STORIES. Rape fetish cartoon rape dog raPE RaPE Porn. Real rape real rape erotic rape stories. Free rape clips brutal rape forcED SeX faNTAsy. Forced sex videos male rape gang violence. Bondage rape ass rape FANTASY RAPE STORIES. Real rape forced sex fantasy FREE RAPE VIDEO. Teen violence domestic violence women rape rape sex. True rape stories teen rape free RApe StORiEs foRCeD sex pIcs. Rape images rape victims stories of rape. Teen rape teenage rape rape pics. Free rape movies virgin rape FRee rapE PicS FORceD SEx pICS. Marital rape forced sex stories TEEN RAPE. Rape comics family violence free rape videos. Rape photos free rape videos TEENAGE RAPE. xxx rape
Posted by: forced rape on Octubre 29, 2004 08:10 PMXxx rape rape thumbnails rape sites. Xxx rape free forced sex rAPE PiCturES. Rape gallery tentacle rape rape porn. Male rape domestic violence bondage rape. War rape incest rape MARITAL RAPE. Sexual abuse interracial rape rape fiction fantasy rape stories. Teen rape erotic rape stories raPE thUmbNaiLS BonDaGe RapE. Sexual abuse rape photos free forced sex forced sex fantasy. Rape fantasy stories teen rape FREE RAPE GALLERIES FREE RAPE. Rape comix interracial rape RUSSIAN RAPE. Rape xxx rape images rape websites with screams. Military rape rape fantasy stories TEACHER RAPE. Teacher rape rape porn rape bondage gang rape. Gang violence girl rape GIRL RAPE STORIES OF RAPE. Male rape asian rape RAPE fEtish. Stories of rape rape movies RAPE VICTIM BOY RAPE. Domestic violence bondage rape free rape movies rape pictures. Free rape clips rape thumbnails domeStIC viOLeNcE. Military rape rape fetish violence in movies. Incest rape free rape clips rape poems war rape. Rape sex rape pictures brutal rape. Sexual abuse brutal rape dAtE rapE. Free rape porn rape sex stories GANG RAPE ANIME RAPE. Anal rape rape poems BOY RAPE. Black rape rape comix rApE sCeneS FreE RaPE gaLLERIes. Rape thumbnails lesbian rape RAPE GALLERIES. Girl rape dog rape sexual abuse dog rape. Fantasy rape rape sex stories PRISON RAPE. Rape xxx free rape sex anime rape marital rape. Rape bondage boy rape free rape sex rape fantasies. Torture and rape websites black rape japanese rape. Forced sex gay rape RAPE XXX CARTOON RAPE. Rape pic rape story xxX rAPE. Violence in movies free forced sex TEnTaclE Rape RaPe CoMiX. Free rape stories fantasy rape stories workplace violence. Fantasy rape rape galleries RAPE SEX STORIES. Rape fetish cartoon rape dog raPE RaPE Porn. Real rape real rape erotic rape stories. Free rape clips brutal rape forcED SeX faNTAsy. Forced sex videos male rape gang violence. Bondage rape ass rape FANTASY RAPE STORIES. Real rape forced sex fantasy FREE RAPE VIDEO. Teen violence domestic violence women rape rape sex. True rape stories teen rape free RApe StORiEs foRCeD sex pIcs. Rape images rape victims stories of rape. Teen rape teenage rape rape pics. Free rape movies virgin rape FRee rapE PicS FORceD SEx pICS. Marital rape forced sex stories TEEN RAPE. Rape comics family violence free rape videos. Rape photos free rape videos TEENAGE RAPE. xxx rape
Posted by: forced rape on Octubre 29, 2004 08:11 PM1431
this is a great plae to play texas holdem online. feel free to try out the http://texas-holdem-a.fateback.com for big bonuses! texas holdem poker
8336 http://video-poker.ownsthis.com
this is a site for video poker. kick back, relax and online video poker.
Posted by: http://video-poker.ownsthis.com on Octubre 31, 2004 03:18 AM5776 http://www.e-slots.info slots click here to play
online slots
2414 http://www.online-casinos-w.com
online casinos
2211 http://texas-hold-em-w.fateback.com
texas hold em
online texas hold em
8928 count sheep or use ambien for your
sleeping pill needs.
5306 Kona Coffee Starbucks Coffee Jamaica Blue Mountain
Coffee
coffee maker gourmet coffee green mountain coffee kenya coffee organic coffee specialty coffee folgers coffee coffee brewers costa rica coffee Tullys Coffee Millstone Coffee coffee grinder http://www.coffee-delivered.com
2171 Ttry playing online pokeronline.
Posted by: poker on Noviembre 3, 2004 02:17 PM