| |
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.
|
6 Articles match "Unit Testing"
See all articles with
"Unit Testing"
| The Latest from .NET Mutterings | MORE | | Devweek 2012 Andy will be covering the new async functionality of C#5, highlighting how you now write both ui and server side code to consume and enable the use of these new wonderful keywords, and doing a whole day of threading as a pre con on Monday Kevin will be presenting a day of building MVC applications, along with a session on unit testing. Rich will be covering topics from Whats New in WCF 4.5, and the ever cool Reactive Framework, and a deep dive into the GC, something all developers should have intimate knowledge of. Hopefully see you there with what should be a fun pact week DevelopMentor Courses - Thursday, November 24, 2011 DevWeek 2010 It was the first year we ran our “Ask the Doctor” booth for all those that dropped in I hope you found the advice useful…we certainly had a great time digging into interesting issues, from unit testing, Entity Framework, WCF and general architecture issues Had a great time again at DevWeek 2010. All my demos are uploaded to our conference page. .NET Mutterings - Friday, March 19, 2010 Parallel utilities You can download the library from here Its a Visual Studio 2010 project, containing the library and a unit test project which should provide enough insight to how the library works. Whilst working with.NET 4 parallel extensions I often find the need to extend the framework to assist me in various day to day tasks. ve finally got around to compiling a library of such extensions. The extensions include the following Set Process Affinity, so I can see how my algorithm scales on a different number of cores. Will select non hyperthreaded cores first. .NET Mutterings - Monday, October 5, 2009 | | The Best from .NET Mutterings | MORE | | Devweek 2012 Andy will be covering the new async functionality of C#5, highlighting how you now write both ui and server side code to consume and enable the use of these new wonderful keywords, and doing a whole day of threading as a pre con on Monday Kevin will be presenting a day of building MVC applications, along with a session on unit testing. Rich will be covering topics from Whats New in WCF 4.5, and the ever cool Reactive Framework, and a deep dive into the GC, something all developers should have intimate knowledge of. Hopefully see you there with what should be a fun pact week DevelopMentor Courses - Thursday, November 24, 2011 DevWeek 2010 It was the first year we ran our “Ask the Doctor” booth for all those that dropped in I hope you found the advice useful…we certainly had a great time digging into interesting issues, from unit testing, Entity Framework, WCF and general architecture issues Had a great time again at DevWeek 2010. All my demos are uploaded to our conference page. .NET Mutterings - Friday, March 19, 2010 Parallel utilities You can download the library from here Its a Visual Studio 2010 project, containing the library and a unit test project which should provide enough insight to how the library works. Whilst working with.NET 4 parallel extensions I often find the need to extend the framework to assist me in various day to day tasks. ve finally got around to compiling a library of such extensions. The extensions include the following Set Process Affinity, so I can see how my algorithm scales on a different number of cores. Will select non hyperthreaded cores first. .NET Mutterings - Monday, October 5, 2009 | - 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. But like most things in life its not as simple as yes or no. .NET Mutterings - Friday, October 2, 2009 - NET Generics and C++ STL
guess I could write a generic unit test that inspects a method and fails if it finds a boxing op codeA fellow instructor was commenting, well moaning to be exact about the fact that.NET generics were not as flexible as C++ templates. In this particular case he wanted to produce a generic Complex number type, such that he could write a single version and instantiate it for ints, doubles etc. This is trivial in C++ templates, but not so in.NET. Whilst undertaking this task there is a feature I would really like from the C# compiler and that is a pragma to turn auto boxing off. .NET Mutterings - Monday, July 3, 2006 - Custom ToString() for Flag based Enums, and a splatter of Unit Testing
To extend the technique to Flag'd based enums you need to effectively test the enum value against each possible flag value. A project that I'm currently working on has a enum type, where the enum is defined like so [Flags] public enum EventDayMask { NONE = 0, SUNDAY = 1, MONDAY = 2, TUESDAY = 4, WEDNESDAY = 8, THURSDAY = 16, FRIDAY = 32, SATURDAY = 64 } Calling ToString on a value of type EventDayMask would result in a comma separated list of the various set bits. You can't override ToString for Enum's which means you can't write your custom string generate as part of the enum class. .NET Mutterings - Friday, February 2, 2007 %>
100 Articles match "Unit Testing"
See all articles with
"Unit Testing"
| The Latest from DevelopMentor | MORE | | Unit testing a ASP.NET WebAPI controller Testing a simple ApiController that gets data Suppose we have the following ASP.NET WebAPI Controller with two Get methods, the first returns the complete list of books and the second returns the book with the requested ID. Testing the Get() method. The Get() method that returns all books is easy enough to test. Testing the Get(id) method. Testing for getting with an invalid ID is equally simple: 1: [TestMethod]. Testing an HTTP PUT operation. Testing an update using an HTTP put is just as simple as a testing a get action. 8: 9: }. 11: {. The Problem Solver - Sunday, May 12, 2013 Agile Clinic: Dear Allan, we have a little problem with Agile. Sprints last three weeks, including planning, development and testing. planning, development and testing” Good, but I immediately have two lines of enquiry to peruse. Second: testing should come before development, well, at least “test scripts”, and it should be automated so if it comes after development it is trivial. Testing again: do the devs know the end conditions? Is it not done because it hasn’t finished dev or test? Sounds like too much is being taken into the sprint Are the devs practicing automated test first unit testing? Allan Kelly's Blog - Sunday, April 28, 2013 Devweek 2013 What’s new in Unit Testing in VS 2012 (remember that Fakes is only in VS Ultimate SKU Thanks to everyone who attended my sessions at Devweek 2013 – I had a lot of fun delivering them. It was also great to catch up with old friends and make a few new ones. As promised I have uploaded all of my slides and demos to the cloud and they can be downloaded here. WCF Preconference Workshop. Reactive Framework. Living with the GC. Workflow 4.5. WCF 4.5 remember you’ll need to be running Windows 8 for the WebSockets demos). DevelopMentor Courses - Saturday, March 9, 2013 | -
| The Best from DevelopMentor | MORE | - Significant Advances in Unit Testing Windows Workflow
This post describes a unit testing library for testing Windows Workflow Foundations. Rather it's a library that can be used in conjunction with any of these testing frameworks. Download the library with sample test project here: Kennedy.WorkflowTesting.zip (216 KB). First a Little History: Last September I posted this teaser entitled Unit Testing Coming to a Workflow Near You. In that previous post, I highlighted what I could determine to be the current state-of-the-art with regard to unit testing workflows, circa September 2008. Michael C. Kennedy's Weblog - Sunday, January 18, 2009 - Article: Avoiding 5 Common Pitfalls in Unit Testing
Llewellyn Falco and I recently wrote an article for DevelopMentor's Developments newsletter entitled Avoiding 5 Common Pitfalls in Unit Testing. Avoiding 5 Common Pitfalls in Unit Testing. When I started out with unit tests, I was enthralled with the promise of ease and security that they would bring to my projects. In practice, however, the theory of sustainable software through unit tests started to break down. Unit Tests have become more trouble than they are worth.". When tests would stop working, we just ignored them. Michael C. Kennedy's Weblog - Thursday, August 6, 2009 - Unit Testing Coming to a Workflow Near You
[Update: See the follow up post "Significant Advances in Unit Testing Windows Workflow" ]. However you won't find very much support for Test Driven Development (TDD) or unit testing in general. In fact the architecture that makes Windows Workflow powerful (strict separation of workflow, activities, and the host for example) really gets in the way of unit tests. There has been some work done on unit testing Windows Workflows. Here's some links: Unit Testing Activities with Windows Workflow Foundation by Ron Jacobs. Michael C. Kennedy's Weblog - Tuesday, September 30, 2008 - TDD Invades Space Invaders
As a follow-up to our " Avoiding 5 Common Pitfalls in Unit Testing " article we did a webcast where we took a problem from the audience and solved it live and unrehearsed on stage. The thing to remember is that all of this was done for the sole purpose of creating a recipe for a scenario we could test. Create a new test project. We made it to step 4 during our presentation (download code below) and estimate another 15 minutes would have had the whole scenario done, tested, and well-factored. Tags: DevelopMentor Screencasts Talks Unit Testing Michael C. Kennedy's Weblog - Wednesday, October 28, 2009 - Test-Driven Cameras
wish people had this same reaction to the idea of writing code without first writing tests (TDD). Tests give you the chance: To see what you are going to write, BEFORE you write it. If you haven’t already, here’s a great place to start learning to Test-Driven Development ? If you are already writing tests, here’s a free library to make test even easier to write? Unit Testing TDDI am getting old. The other day I was hanging around with my friend, Ike Ellis. He told me a story about his kids. The first question they asked was “Where is the picture?” DevelopMentor Courses - Wednesday, September 7, 2011 %>
| | |