I was putting a small example program together and noticed that JustMock doesn't work with the .NET Framework 4 Client Profile. Admittedly, this isn't a real-world scenario, so I don't know how important it is, but thought I would mention it anyway. Here's the message:
Warning 1 The referenced assembly "Telerik.JustMock" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. MockTest
A second observation from reading the message above; I'm not sure that there should be a dependency on System.Web. i.e. What if I wasn't building a Web application.
It's just a console app and I had the code in the Main method like this:
BTW, I already know how to create a test project and so on, but was just fiddling around and thought this info might be interesting for you.
Joe
Warning 1 The referenced assembly "Telerik.JustMock" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. MockTest
A second observation from reading the message above; I'm not sure that there should be a dependency on System.Web. i.e. What if I wasn't building a Web application.
It's just a console app and I had the code in the Main method like this:
using System; |
using System.Collections.Generic; |
using System.Linq; |
using System.Text; |
using Telerik.JustMock; |
namespace MockTest |
{ |
class Program |
{ |
static void Main(string[] args) |
{ |
ICustomer cust = Mock.Create<ICustomer>(); |
Order ord = new Order(cust); |
} |
} |
} |
BTW, I already know how to create a test project and so on, but was just fiddling around and thought this info might be interesting for you.
Joe