本文整理汇总了C#中IPackageTree.Expect方法的典型用法代码示例。如果您正苦于以下问题:C# IPackageTree.Expect方法的具体用法?C# IPackageTree.Expect怎么用?C# IPackageTree.Expect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPackageTree
的用法示例。
在下文中一共展示了IPackageTree.Expect方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Before_each_spec
protected override void Before_each_spec()
{
dependencyResolver = CreateStub<IDependencyResolver>();
dependencyResolver.Stub(x => x.Resolve<SVNSourceControl>()).Return(new SVNSourceControl(string.Empty));
IoC.InitializeWith(dependencyResolver);
factory = new DslFactory { BaseDirectory = DirectoryHelper.GetBaseDirectory() };
factory.Register<BooConfigReader>(new ConfigReaderEngine());
packageTree = MockRepository.GenerateStub<IPackageTree>();
packageTree.Expect(x => x.Root).Return(packageTree);
packageTree.Expect(x => x.CurrentDirectory).Return(new DirectoryInfo(Environment.CurrentDirectory));
}
示例2: Because
protected override void Because()
{
buildEngine = new BuildEngine(null, "", FrameworkVersion.FrameworkVersion35,
CreateStub<IDependencyDispatcher>());
buildEngine.BuildRootDirectory = "output";
packageTree = MockRepository.GenerateStub<IPackageTree>();
packageTree.Expect(pt => pt.WorkingDirectory).Return(new DirectoryInfo("C:\\temp"));
runner = new MSBuildBuildTool();
}