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.

53 Articles match "Unit Testing"

  • Related DevelopMentor Courses

    53 Results found
    Showing page 1 of 3   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 2 controller
    'Earlier this year I wrote a blog post about how to unit test ASP.NET WebAPI controllers. It turned out that in order to do a good job of testing the public ApiController methods you would need to quite a bit of setup. One of the goals of the ASP.NET WebAPI 2 was to make testing of controllers easier. So how does this change the unit testing story? So how about testing them? Testing the Get() method. The Get() method as real easy to test before as we where just returning an IEnumerable. Testing the Get(id) method. 13: {.
    The Problem Solver - Wednesday, November 13, 2013
  • 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
  • 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
  • Unit testing the AngularJS code in the RAW Stack
    However we didn't actually start writing any tests yet so lets create a few tests. The AngularJS controller under test Just as a quick reminder the AngularJS controller in our previous code was as follows 1: ( function () {. What do we want to test. The first thing we need to think about what to test. There isn't really a lot of application logic here so there is not much to test on that front. With JavaScript there is no compiler to validate this so it makes sense to create small unit tests that check our public interface. Try it.
    The Problem Solver - Saturday, February 22, 2014
  • Unit testing AngularJS HTTP requests in the RAW Stack
    'In the previous blog post we created some basic unit tests for the AngularJS movies controller. As I mentioned there was one set of tests missing and that was around the controller doing HTTP requests to the WebAPI backend. In a unit test typically don't want to do those test for real. Fortunately AngularJS makes it easy to fake those requests and test the controller bits in isolation. which contains a number of things for our tests. Testing the HTTP requests The unit tests are quite simple. 13: $scope: scope.
    The Problem Solver - Friday, February 28, 2014
  • 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
  • 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
  • Unit testing the WebAPI controller and RavenDB database in the RAW stack
    'In the previous post we added unit tests for the AngularJS code running on the client. And while these tests are important there is more to test. In this post we are going to add unit tests for those two. And the dependency is then based around interfaces so a dependency can be faked during testing. And because we are already using the EmbeddableDocumentStore that loads its connection info from the application configuration file all we need to do is specify the appropriate connection string for our unit tests. 8: [TestClass].
    The Problem Solver - Monday, March 3, 2014
  • Index of posts on the RAW stack
    'Introducing the RAW stack Creating a basic skeleton with the RAW stack Refactoring the AngularJS code in the RawStack Unit testing the AngularJS code in the RAW Stack Unit testing AngularJS HTTP requests in the RAW Stack Unit testing the WebAPI controller and RavenDB database in the RAW stack Using dependency injection with WebAPI in the RAW stack Paging data using AngularJS and RavenDB in the RAW Stack Using Bootstrap with the RAW stack The RAW stack and filtering movies by genre. RawStack
    The Problem Solver - Sunday, March 23, 2014
  • 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
  • Manual testing sinful?
    'One of the asides I made in “ Programmers without TDD will be unemployable ” which caused a bit of outrage in the testing community was my comment “Manual testing is a sin.” Look at the full line the quote appeared in: “Unit testing will be overwhelmingly automated. Manual testing is a sin. Manual unit testing doubly so.” In the context of Unit Testing, as one who has undertaken formal and informal manual unit testing I believe unit testing can and should be fully automated. I will also go further.
    Allan Kelly's Blog - Sunday, February 16, 2014
  • 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
  • Programmers without TDD will be unemployable by 2022 (a prediction)
    By TDD I mean Test Driven Development - also called Test First (or Design Driven) Development. The characteristics I am concerned with are: Developer written automated unit test, e.g. if you write Java code you write unit tests in Java. or Ruby, or some other computer language The automated unit tests are executed routinely, at least every day This probably means refactoring, although as I’ve heard Jason Gorman point out: interest in refactoring training is far less than that in TDD training. Unit testing will be overwhelmingly automated.
    Allan Kelly's Blog - Tuesday, January 7, 2014
  • Refactoring the AngularJS code in the RawStack
    13: window.location = window.location; 14: }); 15: }; 16: }); 17: }()); All in all the code isn't much harder and at least it is in a separate file so we can start unit testing it as well. This not only makes the controller harder to unit test but is also breaking the single responsibility rule. But we will fix that bit in a future post after I have shown how to unit test the controller as it is now. In the next post I will cover getting started to testing the client side JavaScript code. It still will not be perfect but better. Try it.
    The Problem Solver - Monday, February 17, 2014
  • 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
  • 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
  • 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
  • Maurice de Beijer: Integrating the #WebAPI HttpClient and ApiController in a single test
    'In the two previous blog posts I showed how to unit test and ASP.NET WebAPI controller and how to unit test the client side code depending on the HttpClient class. Both unit tests are perfectly valid but as so often just adding unit tests can be deceptive. After all testing an ApiController by just calling the methods makes it perfectly possible to call them in such a way that would never be possible using a real HTTP request. When testing the client code in the previous blog post we already used this fact. 1: [TestMethod].
    The Problem Solver - Monday, May 27, 2013
  • 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
<< 1 2 3 >>