DotNetShoutout - Stories tagged with Unit Test
2
Shouts

Testing DI bootstrappers

published 468 days, 18 hours, 10 minutes ago posted by http://jclaes.blogspot.com/http://jclaes.blogspot.com/ 469 days, 4 hours, 24 minutes ago
Monday, February 06, 2012 6:22:29 PM GMT Monday, February 06, 2012 8:08:20 AM GMT
While your Dependency Injection bootstrappers - being responsible for gluing your application together - are a vital part of your application, they are seldom put under test. I don't see any reason why they shouldn't be though. The cost of these tests is negligible, definitely if you compare it to the cost of the often catastrophical outcome of bugs in your bootstrappers. (more)
category: Web Dev | clicked: 25 | comment | | source: jclaes.blogspot.com
tags: ASP.NET MVC, Ninject, Unit Test, unit testing
3
Shouts

How to Work With Generic Repositories on ASP.NET MVC and Unit Testing Them By Mocking

published 512 days, 16 hours, 6 minutes ago posted by http://tugberk-ugurlu.myopenid.com/http://tugberk-ugurlu.myopenid.com/ 514 days, 17 hours, 5 minutes ago
Saturday, December 24, 2011 8:26:37 PM GMT Thursday, December 22, 2011 7:27:54 PM GMT
In this blog post we will see how to work with generic repositories on ASP.NET MVC and unit testing them by mocking with moq (more)
category: Web Dev | clicked: 25 | 1 comment | | source: tugberkugurlu.com
tags: ASP.NET MVC 3, ASP.NET MVC, Ninject, Mocking, Dependecy Injection, Mock, Moq, Unit Test, ASP.NET
2
Shouts

Using the InternetExplorerDriver for WebDriver

posted by tduponttdupont 580 days, 13 hours, 8 minutes ago
Monday, October 17, 2011 11:24:22 PM GMT
Are you getting this error when trying to use the InternetExplorerDriver for WebDriver (Selenium 2.0)? "System.InvalidOperationException: Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. (NoSuchDriver)" Don't worry, it's easier to fix than it sounds... (more)
category: Web Dev | clicked: 20 | comment | | source: www.tomdupont.net
tags: TDD, Selenium 2, Internet Explorer, Unit Test, WebDriver
5
Shouts

AutoMoq Introduction

published 620 days, 5 hours, 21 minutes ago posted by martinigmartinig 621 days, 4 hours, 48 minutes ago
Thursday, September 08, 2011 7:11:32 AM GMT Wednesday, September 07, 2011 7:44:33 AM GMT
AutoMoq is an “auto-mocking” container that automatically creates for Moq any fake objects that are necessary to instantiate the class under test. (more)
category: Screencast | clicked: 115 | 1 comment | | source: www.dotnet-tv.com
tags: Mocking, Open Source, Unit Test, unit testing
6
Shouts

Silverlight Unit Test For Phone - Jesse Liberty

published 802 days, 21 hours, 46 minutes ago posted by KluggerKlugger 803 days, 15 hours, 28 minutes ago
Wednesday, March 09, 2011 2:46:54 PM GMT Tuesday, March 08, 2011 9:05:03 PM GMT
There has been some confusion about how to make the Silverlight Unit Tests work on FAILEDUNITTESTWindows Phone. The latest release of the Silverlight Unit Tests comes with the Silverlight Toolkit, and it targeted at Silverlight 4. Windows Phone is based on an enhanced version of Silverlight 3 and cannot use these DLLs. Fortunately, Jeff Willcox has made the right DLLs available on his web site... (more)
category: Metro | clicked: 0 | comment | | source: jesseliberty.com
tags: Silverlight, phone, Unit Test
12
Shouts

How To Unit Test Workflows–Mocking Activities - Ron Jacobs

published 964 days, 14 minutes ago posted by AlexAlex 965 days, 21 hours, 6 minutes ago
Wednesday, September 29, 2010 12:18:45 PM GMT Monday, September 27, 2010 3:26:16 PM GMT
Suppose you want to unit test a workflow that has some external dependency like a database, web service, file or some other thing that makes testing inconvenient. The need to eliminate external dependencies when testing has led to a world of mocking frameworks that allow you to automatically generate a mock with pre-defined behavior. I wanted to do the same thing with Activities in workflows and I’ve now added support for this to the latest release of the Workflow Test Helper project using a technique ... (more)
category: Architecture | clicked: 2 | comment | | source: blogs.msdn.com
tags: WF4, workflow, Mocking, Unit Test
2
Shouts

Rhino Mocks for testing

published 973 days, 22 hours, 18 minutes ago posted by http://mpremraj.myopenid.com/http://mpremraj.myopenid.com/ 976 days, 7 hours, 29 minutes ago
Sunday, September 19, 2010 2:14:31 PM GMT Friday, September 17, 2010 5:03:54 AM GMT
Mock object is making to mock implementation with the custom objects. So many mock objcts available like NMock,NMock2,EasyMock, Rhino Mocks,TypeMock . But i am using the Rhino Mock. This is supports for dot net developments.The mocks are using in the developement of unit testing. This kind of mocks are taking the stub, doing the validation with the actual in testing level and return the results or throw the except. This is the way to validate the objects, functionality and properties. You can get downlo... (more)
category: Web Dev | clicked: 17 | comment | | source: www.blog.my-idea.co.in
tags: Rhino Mocks, Team, Unit Test, ASP.NET
5
Shouts

Unit Test using test doubles, aka Mock, Stub, Fake, Dummy

published 1036 days, 23 hours, 58 minutes ago posted by http://laurentkempe.myopenid.com/http://laurentkempe.myopenid.com/ 1038 days, 22 hours, 59 minutes ago
Sunday, July 18, 2010 12:34:51 PM GMT Friday, July 16, 2010 1:33:33 PM GMT
Following my post about Application Acceptance Testing, we went, beginning of that week, in some very interesting discussions during a meeting at Innoveo in which I presented the differences between Mock and Stub in Unit Test. After the meeting as I often do I gather up from the web some posts which expressed in more details what I was talking about and made some extract of the posts. This time I found some interesting content follow-up on my explanations on the site of Rhino.Mock framework website and ... (more)
category: Agile | clicked: 0 | comment | | source: www.laurentkempe.com
tags: Mock, Stub, Unit Test
3
Shouts

BinaryThought Blog | Pex Power Tools

published 1037 days, 21 hours, 46 minutes ago posted by http://binarythought.myopenid.com/http://binarythought.myopenid.com/ 1039 days, 2 hours, 58 minutes ago
Saturday, July 17, 2010 2:46:38 PM GMT Friday, July 16, 2010 9:34:30 AM GMT
An introduction to the Pex Power Tools for Visual Studio 2010. (more)
category: Architecture | clicked: 1 | comment | | source: blog.binarythought.net
tags: Visual Studio 2010, Pex, Unit Test
12
Shouts

Unit Testing Dynamic XAP Files

posted by faisalhossainfaisalhossain 1054 days, 13 hours, 30 minutes ago
Wednesday, June 30, 2010 11:02:54 PM GMT
By now, you probably are aware that you can dynamically load XAP files using the Managed Extensibility Framework (MEF) within your Silverlight applications. Have you been scratching your head, however, and wondering how on earth you would actually test something like that? It is possible, and here's a quick post to show one way you can. First, we need a decent deployment service. You're not really going to hard-code the download and management, are you? I didn't think so. If you need an example, loo... (more)
category: Metro | clicked: 0 | comment | | source: csharperimage.jeremylikness.com
tags: Silverlight, Xap, Unit Test
5
Shouts

Write your Tests in RSpec with IronRuby - Kazi Manzur Rashid

published 1065 days, 41 minutes ago posted by rajuraju 1066 days, 21 hours, 8 minutes ago
Sunday, June 20, 2010 11:51:48 AM GMT Friday, June 18, 2010 3:24:13 PM GMT
[Note: This is not a continuation of my previous post, treat it as an experiment out in the wild. ] Lets consider the following class, a fictitious Fund Transfer Service: view source print? 01 public class FundTransferService : IFundTransferService 02 { 03 private readonly ICurrencyConvertionService currencyConvertionService; (more)
category: How To | clicked: 4 | 1 comment | | source: weblogs.asp.net
tags: RSpec, C#, MSpec, IronRuby, Mock, Iron Ruby, Ruby, BDD, Unit Test
6
Shouts

Tip – When writing custom assertion methods – Keep your assertion stack trace clean

posted by http://daniel.wertheim.se/http://daniel.wertheim.se/ 1083 days, 17 hours, 46 minutes ago
Tuesday, June 01, 2010 6:46:48 PM GMT
I have bumped in to a couple of custom assertion methods which lets the assertion stack trace contain the assertion method itself. Hence, if I use, e.g. Testdriven.Net, I might double-click on the wrong line and end up in the assertion method instead of the test. It’s really easy to prevent this, just add... (more)
category: Architecture | clicked: 0 | comment | | source: daniel.wertheim.se
tags: TestDriven.NET, Assertion methods, gallio, MBUnit, Unit Test, unit testing
6
Shouts

Finally! Entity Framework working in fully disconnected N-tier web app

posted by oazabiroazabir 1098 days, 7 hours, 37 minutes ago
Tuesday, May 18, 2010 4:56:00 AM GMT
Entity Framework was supposed to solve the problem of Linq to SQL, which requires endless hacks to make it work in n-tier world. Not only did Entity Framework solve none of the L2S problems, but also it made it even more difficult to use and hack it for n-tier scenarios. Learn how I solved all disconnected scenarios and made 100% unit testable EF. (more)
category: Web Dev | clicked: 3 | 1 comment | | source: omaralzabir.com
tags: Entity Framework, .NET 3.5 SP1, TDD, Unit Test
5
Shouts

Code Contracts: Unit testing contracted code

published 1108 days, 23 hours, 32 minutes ago posted by gpeipmangpeipman 1110 days, 4 hours, 36 minutes ago
Friday, May 07, 2010 1:00:09 PM GMT Thursday, May 06, 2010 7:56:12 AM GMT
Code contracts and unit tests are not replacements for each other. They both have different purpose and different nature. It does not matter if you are using code contracts or not – you still have to write tests for your code. In this posting I will show you how to unit test code with contracts. (more)
category: How To | clicked: 1 | 8 comments | | source: weblogs.asp.net
tags: Code Contracts, Visual Studio 2010, Testing, Unit Test
9
Shouts

How to convince developers and management to use automated test instead of manual test - CodeProject

published 1108 days, 23 hours, 32 minutes ago posted by omaralzabiromaralzabir 1113 days, 1 hour, 40 minutes ago
Friday, May 07, 2010 1:00:09 PM GMT Monday, May 03, 2010 10:52:17 AM GMT
Learn ways to convince devs and management to move away from manual testing to automated unit, integration testing. See some convincing graphs to put in a powerpoint. (more)
category: Agile | clicked: 0 | comment | | source: www.codeproject.com
tags: TDD, Integration Test, BDD, Unit Test
4
Shouts

Using Mocking Framework - Moq

published 1166 days, 16 minutes ago posted by kitchaiyongkitchaiyong 1167 days, 8 hours, 25 minutes ago
Thursday, March 11, 2010 12:16:07 PM GMT Wednesday, March 10, 2010 4:07:23 AM GMT
This post will tell how to incorporate one of the popular & free object mocking framework, Moq in your unit tests. (more)
category: Agile | clicked: 4 | comment | | source: www.kitchaiyong.net
tags: Moq, Unit Test
3
Shouts

How to convince developers and management to use automated unit test for AJAX websites

posted by omaralzabiromaralzabir 1168 days, 6 hours ago
Tuesday, March 09, 2010 6:33:05 AM GMT
How to convince developers and management to use automated unit test for AJAX websites Everyone agrees that unit testing is a good thing, we should all write unit tests. We read articles and blogs to keep us up-to-date on what’s going on in the unit test world so that we can sound cool talking to peers at lunch. But when we really sit down and try to write unit tests ourselves – “Naaah, this is waste of time, let’s ask my QA to test it; that’s much more reliable and guaranteed way to test this. What’s t... (more)
category: Web Dev | clicked: 0 | comment | | source: weblogs.asp.net
tags: Integration Test, Ajax, Unit Test
3
Shouts

Unit Testing and Integration Testing in real projects

posted by omaralzabiromaralzabir 1168 days, 6 hours, 11 minutes ago
Tuesday, March 09, 2010 6:21:07 AM GMT
Unit Testing and Integration Testing in real projects I am yet to find a proper sample on how to do realistic Test Driven Development (TDD) and how to write proper unit tests for complex business applications, that gives you enough confidence to stop doing manual tests anymore. Generally the samples show you how to test a Stack or a LinkedList, which is far simpler than testing a typical N-tier application, especially if you are using Entity Framework or Linq to SQL or some ORM in data access laye... (more)
category: Agile | clicked: 0 | comment | | source: weblogs.asp.net
tags: TDD, Integration Test, BDD, Unit Test
3
Shouts

Do Unit Test and Integration Test from same test code using Conditional Compilation - Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

posted by omaralzabiromaralzabir 1168 days, 6 hours, 21 minutes ago
Tuesday, March 09, 2010 6:11:52 AM GMT
Do Unit Test and Integration Test from same test code using Conditional Compilation You usually write unit test and integration test code separately using different technologies. For example, for unit test, you use some mocking framework like Moq to do the mocking. For integration test, you do not use any mocking, just some test classes that hits some service or facade to do end-to-end integration test. However, sometimes you see that the integration and unit test are more or less same, they test the sa... (more)
category: Agile | clicked: 0 | comment | | source: weblogs.asp.net
tags: C#, TDD, Integration Test, BDD, Unit Test
7
Shouts

Nizar’s .NET Blog » Refactoring for Unit Testing

published 1202 days, 1 hour, 48 minutes ago posted by noorani786noorani786 1202 days, 19 hours, 55 minutes ago
Wednesday, February 03, 2010 10:45:04 AM GMT Tuesday, February 02, 2010 4:37:10 PM GMT
Imagine the following (which you’ve very likely run into in the past): You join a new company and inherit a humongous existing code base. You are told to add some new functionalities without of course breaking existing functionality. “No problem”, you say! “I’ve done this before.” (more)
category: Architecture | clicked: 9 | comment | | source: nizarnoorani.com
tags: Refactor, C#, Unit Test, unit testing
Previous 1 2 Next