Data-Driven Unit Tests are very powerful but, it seems to me, rarely used feature in Visual Studio. Although they are not suitable in all situations they can be of a great help. Personally, I used them to drive testing of business rules. In one of the scenarios I had 9 parameters and they had about 900 possible combinations. I was able to cut the number of possible tests and I did so, but the point is that in some scenarios just typing in test data into source code is very laborious and error prone and can be easily avoided.
Continue reading ‘Data-Driven Unit Testing using Excel in Visual Studio’
Author Archive for Mihailo Lalevic
With .NET Framework 3.5 came new version of Windows Communication Foundation - WCF 3.5, bringing us very useful set of new features and one of them is out of the box support for REST style services. Now it is easy to create and consume REST services, so without further delay lets do some real world interoperability example - consuming eBay REST API.
There is simple WPF application in the attachment with all the code to do some simple search and presentation of the result: eBay Search Application Source Code
Continue reading ‘WCF and interoperability - Consuming REST Services’
Technorati Tags: .NET Framework, Windows Communication Foundation, WCF 3.5, eBay, REST
Visual Studio 2008 and C# 3.0 are coming with lots of new features, new language constructs, etc. That’s all super but it takes some time to get into it. However, there are some cool stuff you can start using in 5 minutes and I’ll just put a list here with just really basic examples.
Continue reading ‘Start using new C# 3.0 language features in 5 minutes’
Technorati Tags: Visual Studio 2008, C# 3.0