当前位置: 首页>>代码示例>>C#>>正文


C# IPath.SetPathDefaultBehavior方法代码示例

本文整理汇总了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);
		}
开发者ID:crabouif,项目名称:Self-Media-Database,代码行数:10,代码来源:FileOutputTest.cs

示例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);
        }
开发者ID:crabouif,项目名称:Self-Media-Database,代码行数:11,代码来源:ClassifyOperationTest.cs

示例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);
        }
开发者ID:crabouif,项目名称:Self-Media-Database,代码行数:14,代码来源:FileSystemHelperTest.cs

示例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);
        }
开发者ID:crabouif,项目名称:Self-Media-Database,代码行数:14,代码来源:PruneOperationTest.cs

示例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);
        }
开发者ID:crabouif,项目名称:Self-Media-Database,代码行数:10,代码来源:RenameOperationTest.cs


注:本文中的IPath.SetPathDefaultBehavior方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。