本文整理汇总了C#中IPath.SetPathDefaultBehavior方法的典型用法代码示例。如果您正苦于以下问题:C# IPath.SetPathDefaultBehavior方法的具体用法?C# IPath.SetPathDefaultBehavior怎么用?C# IPath.SetPathDefaultBehavior使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPath
的用法示例。
在下文中一共展示了IPath.SetPathDefaultBehavior方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
public void Initialize()
{
_file = Substitute.For<IFile>();
_directory = Substitute.For<IDirectory>();
_path = Substitute.For<IPath>();
_path.SetPathDefaultBehavior();
_fileSystemHelper = Substitute.For<IFileSystemHelper>();
_target = new FileOutput(_file, _directory, _path, _fileSystemHelper);
}
示例2: Initialize
public void Initialize()
{
_path = Substitute.For<IPath>();
_path.SetPathDefaultBehavior();
_file = Substitute.For<IFile>();
_directory = Substitute.For<IDirectory>();
_fileSystemHelper = Substitute.For<IFileSystemHelper>();
_geolocationHelper = Substitute.For<IGeolocationHelper>();
_target = new ClassifyOperationTester(_path, _file, _directory, _fileSystemHelper, _geolocationHelper);
}
示例3: Initialize
public void Initialize()
{
_directory = Substitute.For<IDirectory>();
_file = Substitute.For<IFile>();
_path = Substitute.For<IPath>();
_path.SetPathDefaultBehavior();
_tagHelper = Substitute.For<ITagHelper>();
_streamFactory = Substitute.For<IStreamFactory>();
_fileStream = Substitute.For<IFileStream>();
_streamFactory.CreateFileStream(Arg.Any<string>(), Arg.Any<FileMode>(), Arg.Any<FileAccess>(), Arg.Any<FileShare>()).Returns(_fileStream);
_geolocHelper = Substitute.For<IGeolocationHelper>();
_target = new FileSystemHelperTester(_directory, _file, _path, _tagHelper, _streamFactory, _geolocHelper);
}
示例4: Initialize
public void Initialize()
{
_directory = Substitute.For<IDirectory>();
_file = Substitute.For<IFile>();
_path = Substitute.For<IPath>();
_imageComparer = Substitute.For<IImageComparer>();
_fileSystemHelper = Substitute.For<IFileSystemHelper>();
_dialog = Substitute.For<IDialog>();
_renameOperation = Substitute.For<IRenameOperation>();
_path.SetPathDefaultBehavior();
_target = new PruneOperation(_directory, _file, _path, _imageComparer, _fileSystemHelper, _dialog, _renameOperation);
}
示例5: Initialize
public void Initialize()
{
_fileSystemHelper = Substitute.For<IFileSystemHelper>();
_file = Substitute.For<IFile>();
_path = Substitute.For<IPath>();
_path.SetPathDefaultBehavior();
_dialog = Substitute.For<IDialog>();
_target = new RenameOperation(_fileSystemHelper, _file, _path, _dialog);
}