找不到FakeItEasy模拟界面

| 我是FakeItEasy的新手,而且一般来说都是嘲笑的。我创建了一个Visual Studio 2010 C#类库项目。我添加了对NUnit DLL和FakeItEasy DLL的引用。我为两者都添加了“ using”语句,然后尝试尝试一些文档示例。我的代码是:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FakeItEasy.Core;
// ...
using NUnit.Framework;

namespace TestLib
{
    [TestFixture]
    public class Tester
    {
        [Test] 
        public void SomeTest() 
        {
            ISomething mockThing = A.Fake<ISomething>(); 
            /*
            ...
             */
        }

    }
}
我收到错误消息“找不到类型或名称空间名称\'ISomething \'\”和\“名称\'A \'在当前上下文中不存在。\“ 我想念什么?     
已邀请:
事实证明,有必要创建模拟中引用的接口。它们不是自动生成的。 但是,可以指定要实现的其他接口:
var foo = A.Fake<IFoo>(x => x.Implements(typeof(IComparable)).Implements(typeof(IFormattable))); 
    

要回复问题请先登录注册