Beispiel #1
0
        public void GetOriginalTempFilePathTest()
        {
            //Arrange
            _fileSystem.Setup(m => m.PathCombine(NewTempPath, TempFileManager.OriginalFile)).Returns(TempFilePath);

            //Act
            var filePath = _tempFileManager.GetOriginalTempFilePath();

            //Assert
            Assert.AreEqual(TempFilePath, filePath);

            _fileSystem.Verify(m => m.CreateDirectory(NewTempPath), Times.Once());
        }