Пример #1
0
        public void MethodName_StateUnderTest_ExpectedBehavior()
        {
            // Arrange
            var fileSystem = new DelimonFileSystem();

            var helper = new FileSystemHelper(fileSystem);

            fileSystem.Directory.SetCurrentDirectory(@"D:\Development\Github\FolderDiff\src\FolderDiffPowerShell");

            // Act
            var file = helper.GetFile(@".\Measure.ps1");

            // Assert
            file.File.Exists.Should().BeTrue();
        }
        public void Initialize()
        {
            _fileSystem = new DelimonFileSystem();
            _fileSystemHelper = new FileSystemHelper(_fileSystem);

            _testFolderLookup[Thread.CurrentThread.ManagedThreadId] = Guid.NewGuid().ToString("N");
        }