<target name=”webtest” haltonfailure=”false” failonerror=”true”> <echo message=”Running unit tests”/> <echo message=”${project.local.folder}”/> <property name=”test_dll_folder” value=”${project.local.folder}\McKelt.Tests\bin\Debug\”/> <exec failonerror=”true” program=”${nunit-console.exe}” workingdir=”${project.local.folder}” verbose=”true” append=”true” commandline=”${test_dll_folder}McKelt.Tests.dll /xml=${test_dll_folder}TestResults.xml /output=${test_dll_folder}TestOutput.txt /err=${test_dll_folder}TestErrorOutput.txt”> </exec> <echo…
Technical Test – Book Store An online books store sells books for 3 different categories: Crime, Romance, Fantasy. Currently all books within the Crime category…
Using SpecFlow heres how I solved the following problem PROBLEM : SALES TAXES Basic sales tax is applicable at a rate of 10% on all…
A quick experiment with Spec Flow — http://www.specflow.org/ Spec flow feature Feature: Run Specification rules To stop large postage costs As a user I…
How to use a custom NHibernate User Type To store the state of a Risk (ie RiskState) as a value in a column we…
The following test would fail without this .WhenCalled(invocation => invocation.ReturnValue = new TestResult(){IsTrue = true, Message = “BBB”}) using System; using System.Collections.Generic;…
A simple implemention for calling asych methods from the UI Examples 1. dispatcher.ExecuteOnMainUIThread(CommandManager.InvalidateRequerySuggested); 2. dispatcher.Execute(() => { SomeLongRunningMethodHere(); }); The interface…
Rhino Mock Constraints allow use to test a methods parameters were called with the correct arguments. public interface IDocumentService { void Save(string userName, Document document,…
1. In the following file C:\Windows\System32\inetsrv\config\applicationHost.config Ensure the following <section name=”requestFiltering” overrideModeDefault=”Allow” /> 2 This is the web.config file <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer>…
Download source files:DBDeployExample.zip (4.81 mb) Here is a quick example of how to use DB Deploy This example uses NANT to run DBDeploy which in…