|
|
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
4 Articles match "Null","Unit Testing"
|
Related DevelopMentor Courses
|
MORE
|
|
Essential ASP.NET MVC
How can I build unit tests for my MVC application? Unit Testing Unit testing is one of the main motivators for MVC. This module examines how MVC facilitates unit testing. We will see how to design for unit testing using the repository and service patterns and how to utilize dependency injection. You'll get answers to these questions: What is ASP.NET MVC and how is it different than ASP.NET WebForms? What are controllers, how do they get invoked and how do they accept input?
DevelopMentor Courses
- Thursday, November 5, 2009
Code Smarter with Enterprise Design Patterns in .NET
Design for testing. Dependency Injection containers assist in automating this process by providing a general purpose factory infrastructure, allowing you to build complete systems in terms of abstract types thus enabling unit testing. continuing theme throughout the course will be to ensure that any approach emphasizes unit testing and we therefore demonstrate how this simple approach works with unit testing. Think in terms of layers. Dependency Injection, using Unity.
DevelopMentor Courses
- Wednesday, November 25, 2009
Essential Windows Workflow Foundation 4 - WF4
Developing basic activities/unit testing Why do we need to create our own activities? Gain understanding of the strengths and weaknesses of Windows Workflow Foundation 4. Understand how workflow activities work and what their role is. Discover what part of your application is best suited to use Windows Workflow Foundation and why.
DevelopMentor Courses
- Tuesday, November 17, 2009
|
16 Articles match "Null","Unit Testing"
|
The Latest from DevelopMentor
|
MORE
|
|
MVVM: Introducing the message visualizers
The CanExecute handler for each of them will test the Title property
– null )
{
Result = Enum .GetName( Notice that I test to ensure the visualizer is available – remember that services
can can be replaced or removed – I might do this in my unit tests for example (I actually
mock In this post, I will go over the simple message visualizers available in the MVVM
Helpers Helpers toolkit.
Mark's Blog of Random Thoughts
- Monday, February 1, 2010
Testing Security Code with Moles
I am by far no (unit) testing expert. re-structure code to make it explicitly unit-testable.
One NET Framework – but it is not ideal for testing.
Recently CurrentPrincipalGet
= () =>
new GenericPrincipal ( new GenericIdentity ( "dominick" ), null );
var security
= But I always found it odd that I sometimes have
to to
www.leastprivilege.com
- Monday, February 1, 2010
Mock Smells
So let’s refine our nose. Mocks let you test implementation . Anyone who ever gets uppity about the use of stubs, fakes & mocks is paying a lot of attention to this. Since there are literally 1,000’s of way to program the exact same behavior, Unit tests that lock a particular implementation will actually in up “protecting” your code from being refactored . Today, Bob Martin tweeted : unclebobmartin I use mocking frameworks as little as possible. I
Llewellyn Falco
- Saturday, January 16, 2010
|
-
|
The Best from DevelopMentor
|
MORE
|
-
Article: Avoiding 5 Common Pitfalls in Unit Testing
entitled Avoiding 5 Common Pitfalls in Unit Testing .
You Avoiding 5 Common Pitfalls in Unit Testing
by When I started out with unit tests, I was enthralled with the promise of ease and
security sustainable software through unit tests started to break down. Llewellyn Falco and I recently wrote an article for DevelopMentor's Developments newsletter
entitled You can read it at the DevelopMentor website:
http://www.develop.com/testingpitfalls
I've
Michael C. Kennedy's Weblog
- Thursday, August 6, 2009
-
Article: Avoiding 5 Common Pitfalls in Unit Testing
newsletter entitled Avoiding 5 Common Pitfalls in Unit Testing .
You Avoiding 5 Common Pitfalls in Unit Testing
by When I started out with unit tests, I was enthralled with the promise of ease and
security sustainable software through unit tests started to break down. Llewellyn Falco and I recently wrote an article for DevelopMentor's Developments
newsletter You can read it at the DevelopMentor website:
http://www.develop.com/testingpitfalls
I've
-
Why Write Unit Tests?
Why Write Unit Tests? I've made a small video to go with this post Approval Tests have allowed us to focus on the parts of testing at a much higher level of abstraction. The benefits of Automated Tests are one of the areas that we can now more clearly appreciate. There are 4 main areas programmers Things that had been too hard to see have become visible. First, there is Specifications .
-
Approval Tests (a pictures worth a 1000 tests)
Scenario 1 [Testing a User Interface] Core Concept :
Component gui = createGui(); Approvals.approve(gui);
This creates a snap shot of the gui: gui.received.png This passes if gui.received.png == gui.approved.png If you like the result, simply rename gui.received.png -> gui.approved.png and the test will pass. Could you explain that in a diagram? yes.
Why is this awesome? “a picture is worth a 1000 tests”. Ever find that your unit tests aren’t giving you enough security?
Llewellyn Falco
- Monday, October 13, 2008
-
Approval Tests (a pictures worth a 1000 tests) [repost]
Scenario 1 [Testing a User Interface] Core Concept : Component gui = createGui(); Approvals.approve(gui); This creates a snap shot of the gui: gui.received.png This passes if gui.received.png == gui.approved.png If you like the result, simply rename gui.received.png -> gui.approved.png and the test will pass. Could you explain that in a diagram? yes. Why is this awesome? “a picture is worth a 1000 tests”. Ever find that your unit tests aren’t giving you enough security? Have you started making lots & lots
-
Processing Text Files with LINQ
null)
{
if (line == "MOVIE RATINGS REPORT")
{
inReport = true;
}
else if (line.StartsWith("-"))
{
break;
}
else if (inReport)
{
Match m = votesAndTitleRegex.Match(line);
if (m.Success)
{
int votes = int.Parse(m.Groups[1].Value);
null)
{
yield return line;
}
}
I was recently writing some code to stream through a large text file, processing the lines it found that matched a regular expression. Pretty boring stuff, so my
Jason Diamond
- Sunday, September 7, 2008
-
Are Singletons Evil ?
In fact one member of the audience was experiencing such pain in his attempt to take legacy code base heavily utilising singletons and start to write unit tests. So whilst the majority of the time was spent examining the consequences of using the singleton pattern we also took time to highlight that one or two singletons correctly positioned in your application could in fact enable unit testing, and coding to interface without having to refactor large areas of a legacy code base. This talk took the format of a short geeky play, featuring two developers trying to wrestle with getting the
.NET Mutterings
- Friday, October 2, 2009
|
|
|