CSharpFeeds - All your C# feeds in one place.

Sponsors

Feed: PK Software (OLD Blog) - see http://www.pksoftware.net/devblog/

Site: http://www.pksoftware.net/blog/ Link: http://www.pksoftware.net/blog/SyndicationService.asmx/GetRss

Wednesday, June 13, 2007

An NUnitForms Note for the Form Shown Event

by Paul Kohler via PK Software (OLD Blog) - see http://www.pksoftware.net/devblog/ on 6/13/2007 9:30:07 AM

Just a quick note that could drive you completely mad if you were not aware... If you are using NUnitForms for testing your GUI and have code in the forms "Shown" event, it will not run unless you follow the Form.Show call with Application.DoEvents(), see sample code below This example is just a Label (label1) dumped on a Form with the Load and Shown events updating the label with the respective event text: using System; using System.Collections.Generic; using System.ComponentModel; usin ...

[ read more ]

Thursday, May 17, 2007

Run a Windows Forms application as the Windows User - Integrated Security

by Paul Kohler via PK Software (OLD Blog) - see http://www.pksoftware.net/devblog/ on 5/17/2007 1:32:42 PM

This is the line of code that I keep forgetting... AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal); Use it in (for example) the Program.Main function when the application starts up and the threads currrent principal is now the windows user. So... Thread.CurrentPrincipal.Identity.IsAuthenticated Will now be true and you can make use of the Identity.Name property etc. Self reminder over... More Notes... If for example you need to perform unit tests as a windo ...

[ read more ]

Tuesday, March 20, 2007

Working with unsupported controls in NUnitForms

by Paul Kohler via PK Software (OLD Blog) - see http://www.pksoftware.net/devblog/ on 3/20/2007 12:32:20 PM

My blog has moved to:   http://www.pksoftware.net/devblog/ This post now at:   http://www.pksoftware.net/devblog/post/2007/03/Working-With-Unsupported-Controls-In-NUnitForms.aspx   Another sequel to the entry on "Getting Started with NUnitForms"   http://www.pksoftware.net/blog/2007/02/06/Getting+Started+With+NUnitForms.aspx This post is focused on compiling the latest NUnitForms code from sourceforge. I have seen/heard/had a few questions about testing windows for ...

[ read more ]

Tuesday, February 06, 2007

Getting Started with NUnitForms

by Paul Kohler via PK Software (OLD Blog) - see http://www.pksoftware.net/devblog/ on 2/6/2007 2:30:47 PM

My blog has moved to:   http://www.pksoftware.net/devblog/ This post now at:   http://www.pksoftware.net/devblog/post/2007/02/Getting-Started-With-NUnitForms.aspx   An introduction to NUnitForms with a basic example of automated Microsoft .Net Windows Forms Testing using NUnit. > NUnitForms is a lesser known extension to the well known NUnit testing framework. See http://nunitforms.sourceforge.net/ for details and downloads. It is currently in the process of being upgr ...

[ read more ]

Tuesday, January 09, 2007

Simple Rollback for Database Unit Testing

by Paul Kohler via PK Software (OLD Blog) - see http://www.pksoftware.net/devblog/ on 1/9/2007 12:50:19 PM

At some point in the unit testing game you will need to tackle the unpleasant task of actually coding and running unit tests on the data access code. This in itself can open a bit of a can of worms - the bigger the database, the more worms you need to deal with. If you want a quick solution to being able to run a bunch of data access tests that insert, update and delete data in tables - try putting a TransactionScope object at the test fixture level. If the scope is not committed the chang ...

[ read more ]

Monday, December 11, 2006

UI Testing and NUnitForms

by Paul Kohler via PK Software (OLD Blog) - see http://www.pksoftware.net/devblog/ on 12/11/2006 11:32:32 AM

Updated - See http://www.pksoftware.net/blog/2007/02/06/Getting+Started+With+NUnitForms.aspx I have not had a huge look at this yet but a not so known spin off from NUnit: http://nunitforms.sourceforge.net/ Unit testing geared towards .Net WinForms applications... ...

[ read more ]

Monday, November 27, 2006

How Do I Use TestDriven.NET to Enhance TDD

by Paul Kohler via PK Software (OLD Blog) - see http://www.pksoftware.net/devblog/ on 11/27/2006 12:45:24 PM

With test driven, I take the "standard" TDD approach (something like): write test (based on a use case etc) build the app (will fail because code is not there etc) implement code the code required to get the build compiling run test (test will fail becasue the code stub does nothing useful) implement code - run test and repeat until passed refactor as required - run tests Then apply then to Visual Studio 2005... The results of following this procedure need to be experienced to re ...

[ read more ]

Thursday, November 23, 2006

Testing Non-Public Code from External NUnit Testing Assemblies

by Paul Kohler via PK Software (OLD Blog) - see http://www.pksoftware.net/devblog/ on 11/23/2006 12:42:08 PM

Using the InternalsVisibleTo attribute to get access to another classes internal methods for testing. ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us