Archives for the '.NET Tests' Category
New Best Practice Pattern
In our next release TypeMock.NET will enhance the Best Practices to use Mocks and we have added 2 new ways to use mocks
Scoping the Mocks
Using Test Attributes
Scoping the Mocks
In this way the mocks are scoped using the following pattern
using (new MockScope()) // can set an optional timeout
{
// setup mocks
[…]
Problems with NUnit 2.4 Add-In Extensions
NUnit 2.4 has a new extension feature called NUnit Add Ins. With these Add-Ins it is possible to extend NUnits capabilities without hacking the NUnit code base. This is a great step forward, although it is a feat that MBUnit has been doing for quite some time now.
The best way to understand how to write an Add-In is […]
Best Practices, Mock Usage Pattern
There are a few ways that mocks can be used. As many of you who read my blog might guess I am not an OO Purist. I think that I am more of a Pragmatic OO. The same goes with unit tests, I don’t strongly believe that there must be one Assert per test, and […]
TypeMock Google Group
One of TypeMock Users has started a TypeMock Google Group.
What is interesting is the TypeMock Source Example that you can download that implements the Authentication Example described in the documentation.Thanks, and feel free to use the group.
Bookmark at:
TypeMock Partners and Specialist Community
I am delighted to announce that we have started a new Community for our partners and specialists.
Those in the community will have access to internal information and will have more influence on our coming features and products.We have created a special forum for our partners, where we can meet and share information.
If you want to join […]
TypeMock.NET Pricing
Our prices are going to rise in our next release (mid-May). All developers who are evaluating TypeMock are highly recommend to purchase before mid-May to enjoy our low prices. Existing Customers will be able to upgrade to our next release for free.
Price Changes:
Enterprise Edition Plus 1 Year Maintenance: $375
Professional Edition Plus 1 Year: $275
Annual Maintenance: […]
Mocking Safely …
There have been some concerns on the web about TypeMock being too easy, and thus dangerous.
I am really flattered with that distinction. TypeMock does make your life easy.
Here are a few tips to keep you mocking safely.
Test Features and not classes.Test features, even if they span on a few classes. Remember that you may refactor […]
A different approach to Mock Verification
Scott Bellware has posted about the awkwardness of mock testing - I find that the syntaxes for mock frameworks feel awkward to me.
It is true that the Validation of calls and arguments are hidden in the setup part of the test and the verification is run automatically at the end of the test. Here is how you can have a more […]
Innovation in Practice?
Bob Walsh has pointed to a cool Guy Kawasaki Video about the 10 things (actually 11) you need to know about the Art of Innovation.I was wondering if TypeMock was Innovative according to Guys Scale.
Well here goes:
1. Make Meaning not Money:TypeMock was started to help teams get to speed with TDD, and create better software.
2. […]
Generic Method Helpers
Per request of Paulo Morgado and others, we are implementing Generic API’s for TypeMock.TypeMock has supported Generic since .NET 2.0 Beta has been out, but it did not use Generics in the API’s. This is mainly to allow developers to use the same API’s for all .NET versions and to be able to upgrade their […]