I'm looking to see what is wrong with this code. Looking at the samples it should work with the Telerik.JustMock.DLL referenced, but is throwing a build error instead:
using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Telerik.JustMock;
namespace JustMock_Example
{
public class ClassUnderTest
{
public bool ReturnsFalse()
{
return false;
}
}
[TestClass]
public class IgnoreInstanceTest
{
[TestMethod]
public void ExampleTest()
{
var fake = Mock.Create<ClassUnderTest>();
Mock.Arrange(() => fake.ReturnsFalse()).Returns(true).IgnoreInstance();
Assert.IsTrue(new ClassUnderTest().ReturnsFalse());
}
}
}
///Throws the following:
Error 1 'Telerik.JustMock.Expectations.Abstraction.IAssertable' does not contain a definition for 'IgnoreInstance' and no extension method 'IgnoreInstance' accepting a first argument of type 'Telerik.JustMock.Expectations.Abstraction.IAssertable' could be found (are you missing a using directive or an assembly reference?) c:\~\~\documents\visual studio 2010\Projects\JustMock Example\Class1.cs 23 67 JustMock Example
This is with the most recent build, and hopefully I'm missing something small.
Thanks!