- 授权协议: 未知
- 开发语言: C#
- 操作系统: 跨平台
- 软件首页: https://github.com/darrencauthon/AutoMoq
软件介绍
AutoMoqer 是一个自动测试容器,可根据需要自动创建任何的伪对象来进行某个类的实例化,可通过 mocker 来访问这些伪对象。
示例代码:
var mocker = new AutoMoqer();
mocker.GetMock<IDataDependency>()
.Setup(x => x.GetData())
.Returns("TEST DATA");
var classToTest = mocker.Resolve<ClassToTest>();
classToTest.DoSomething();
mocker.GetMock<IDependencyToCheck>()
.Setup(x=>x.CallMe("TEST"), Times.Once());
CallMe("TEST"), Times.Once());
Persuasive Technology
B.J. Fogg / Morgan Kaufmann / 2002-12 / USD 39.95
Can computers change what you think and do? Can they motivate you to stop smoking, persuade you to buy insurance, or convince you to join the Army? "Yes, they can," says Dr. B.J. Fogg, directo......一起来看看 《Persuasive Technology》 这本书的介绍吧!
