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.

38 Articles match "Unit Testing"

  • Related DevelopMentor Courses

    38 Results found
    Showing page 1 of 2   Next >

  • 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
  • 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
  • Unit testing code depending on the ASP.NET #WebApi HttpClient
    'In a previous post I showed how to unit test an ASP.NET WebAPI Controller. Assuming for a moment the client part is also written in C# we should test that as well. Testing the BooksClient class. If we want to test this class we need to pass in an HttpClient object. This might not sound like a big deal but as this class doesn’t implement an interface we can’t use most of the standard mocking frameworks like Moq to replace the HttpClient with a test fake. Testing the GetBooks() function. test is pretty simple. Testing am HTTP POST action.
    The Problem Solver - Monday, May 20, 2013
  • Complete Unit Testing
    vBlogged my thoughts here: I'm using the LegacyApprovals package (which I wrote, download below) here to test every combination of the possible parameters. It's design to test a lot of cases, but not every case. Links: Approval Tests (Legacy Approvals is part of the standard ApprovalTest download.) Today I had a conversation with @WoodZuill where an extremely rare situation came up. situation where you can practice TDD with Completeness of the possible user scenarios. It's worth pointing out this is NOT what the LegacyApprovals package was actually made for.
    DevelopMentor Courses - Tuesday, December 7, 2010
  • Lynn Langit: Better Unit Testing with Approval Tests
    Here’s my updated deck for SDC 2013, Sweden ‘Better Unit Testing with Approval Tests’ If you want to learn more, check out Llewellyn’s YouTube channel on Using Approval Tests in.NET.
    DevelopMentor Courses - Sunday, February 24, 2013
  • Testing Difficult Code
    I recently did 3 videos in my ‘ Using ApprovalTests in.Net’ series that deal with how to test difficult code. These video actually have very little to do with either.Net or ApprovalTests, but they are common issues you run into when unit testing. Seams Testing difficult Code comes down to 2 things: Can I call the Method? The Peel The hardest part about long methods is you have to run all of it to test even a small part of it. The Slice (Mocks) Even if you get into the piece you are looking to test, you might not be able to get all the way through it.
    DevelopMentor Courses - Wednesday, March 21, 2012
  • Screening C# Candidates: Let’s Play 20 Questions!
    For example, someone might be called upon to build a WPF app retrieving data from a WCF service that queries a SQL database using Entity Framework with Ninject for dependency injection and MOQ for unit testing. The only way to test for those things is to perform an in-depth technical interview performed by a senior technical specialist. Over the past year I was involved in the process of interviewing candidates for both mid and senior level developer positions. Furthermore, I’m looking for a developer with a thirst for knowledge. C# Phone Screen Questions (without Answers).
    DevelopMentor Courses - Tuesday, February 28, 2012
  • Use Common Instance Factory to Abstract Away the Dependency Injection Container
    lot of DI-specific code is needed for unit tests, where there is extensive mocking, and advanced features of a DI container such as Ninject come in handy. Here is a unit test that demonstrates the usage. Download the Common Instance Factory with WCF Extensions here and is also available on NuGet. while back I wrote a blog post on the Onion Architecture , an approach to building loosely-coupled applications where you can swap out particular components without affecting the rest of the application. GreetingService doesn’t care how IGreetingRepository is implemented.
    DevelopMentor Courses - Wednesday, May 23, 2012
  • Lynn Langit: ApprovalTests at Agile 2012
    Woody Zuill and I are presenting on the open source unit testing library ApprovalTests at the Agile 2012 conference this week. Below are the slides. The presentation will also be recorded and I will link that recording here after it’s … Continue reading →
    DevelopMentor Courses - Tuesday, August 14, 2012
  • Guerrilla.NET (UK) Training
    Create robust code using unit testing frameworks and mocking Simplify your service deployment with zero config services with WCF 4.0. Write modern web applications that are simpler to unit test with ASP.NET MVC. Unit Testing Using unit testing comprehensively within software development is a growing movement. Unity testing allows refactoring and maintenance with the confidence that existing functionality is not broken. Leverage new features of C# 4.0, including named and optional parameters and dynamic typing. couldn't? Since.NET 1.0,
    DevelopMentor Courses - Tuesday, March 1, 2011
  • Guerrilla.NET (US) Training
    DI/IoC : Use powerful OO design patterns and techniques to build loosely-coupled, testable, and maintainable applications including Dependency Injection (DI), Inversion of Control (IoC), and unit testing. DI/IoC : Use powerful OO design patterns and techniques to build loosely-coupled, testable, and maintainable applications including Dependency Injection (DI), Inversion of Control (IoC), and unit testing. C# : Leverage new features of C# including asynchronous methods from C# 5.0, dynamic typing from C# 4.0, and LINQ and lambda expressions from C# 3.0. and jQuery.
    DevelopMentor Courses - Tuesday, March 1, 2011
  • 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
  • What’s New in Java ApprovalTests V 0.12
    Unit Testing HadoopMapReduce Before we go into the details of everything involved in HadoopMapReduce, let’s go through an overview of how we’ve been testing our MapReduce jobs. Visualizing the System Unit Testing provides many different advantages to a programmer. In particular, with MapReduce, being able to understand the flow and transformation of the data can be more enlightening than the other aspects of Unit Testing. To demonstrate this, I’m going to start output of my word count unit test. Specifically, it’s a big data thing.
    DevelopMentor Courses - Wednesday, September 19, 2012
  • Theory Based Testing
    Most of us are familiar with classic unit testing. Today, I wanted to talk a about a different form of unit testing, that is much more powerful when it is possible. Theory based test take the normal form of Given A & B expect C and change it to Given A & B expect C theory This removal of the expected C, allows you to test MANY more cases, because you don't need to pre-plan the results for a given A & B I vBlogged my thoughts here: btw: if you are interested in attending an open spaces, check out Open Agile So Cal. 11, 2010
    DevelopMentor Courses - Tuesday, September 14, 2010
  • 11 Agile Myths and 2 Truths
    Granted retrofitting automated unit tests is harder but it is far from insurmountable. I deliver a lot of Agile training courses and I give a lot of talks about Agile ( BCS Bristol tonight ). There are some questions that come up again and again which are the result of myths people have come to believe about Agile. Consequently I spend my time debunking these myths again and again. ve been keeping a little list and there are 11 reoccurring myths. There are also two truths which are a bit more difficult for teams and companies to accept. Every team is different, get over it.
    Allan Kelly's Blog - Tuesday, February 26, 2013
  • DotNed Podcast: Peter Provost over unit testen
    In deze podcast spreekt Hassan Fadili met Peter Provost over unit testen. Links: Blog: [link] Tech-Ed sessies: [link] Team Test Blog: [link] What's new for MSTest Unit Tests in Visual Studio 11 Beta: [link] Application Lifecycle Management resource center | SharePoint 2010 [link] Test Release Management Guidance: [link] Rangers Solutions by Version [link] Compare Visual Studio 2012 editions [link] Hassan's Blog voor alle relevante VS ALM informatie: [link] Met dank aan onze sponsor RedGate. Enjoy! TechEd Podcast DotNed SharePoint UnitTesting
    The Problem Solver - Thursday, July 19, 2012
  • This (new) developers life
    Test Driven Development (TDD) A clearly stated problem, constant feedback, and regression about twice every minute! The journey of a Million lines starts with a single Unit Test.” Today I discovered the podcast “ This Developer’s Life ”. It’s a very differently crafted podcast. Very true to the style of "This American Life” that it’s name is borrowed from. It is more in a story telling venue, better production quality, not about API’s or even craftsmanship, but rather “common” themes to lives programmers. listened to Episode’s “ Play ” & “ Problems ”. No smaller.
    DevelopMentor Courses - Sunday, January 22, 2012
  • Decouple WCF Services from their DI Container with Common Instance Factory
    And I would certainly not use CIF for unit tests (or even some integration tests), where you need to leverage features of the DI container that are not exposed via the factory interface. In this case, you might want to use a super-fast DI container, such as SimpleInjector , for the application while leveraging a full-featured DI container, just as Ninject , for unit testing. Unlike the Common Service Locator (CSL), the Common Instance Factory (CIF) discourages the service location anti-pattern by using the abstract factory design pattern. Enjoy.
    DevelopMentor Courses - Saturday, May 26, 2012
  • Testing Asp.Net pages
    Here is the strategy I’ve been using for unit testing Asp.Net pages. Aspx pages were almost intentionally made to be hard to test, so the result is as elegant as is possible for the given situation. Note : If you want to test something that isn’t the “end result” of a web page, simply pull that logic into a separate classmethoddll and test it normally. This is for testing the final output of the page. The Bottom Line : The following 1 line will test the AspxClass for a given scenario. Step 4) Turn on the local test server and then run the tests.
    DevelopMentor Courses - Sunday, July 3, 2011
  • I fail at TDD?
    While writing the test for my Scanner class, I wrote it so that it would assert on the sequence of tokens it returns. figured this would be the easiest way to start testing my Scanner class. The test probably looked like this (I’m writing this way after the fact): [Test] public void It_scans_literal_text() { var scanner = new Scanner(); var parts = scanner.Scan("foo"); CollectionAssert.AreEqual(new Part[] { new LiteralText("foo"), }, parts); }. At this point, I was able to compile and run my test. Some tests just don’t need anything to be set up!
    DevelopMentor Courses - Friday, October 29, 2010
<< 1 2 >>
%>