public void GetTempFileName_Called_ReturnsStringLengthGreaterThanZero()
        {
            //Arrange
            MockPath mockPath = new MockPath(new MockFileSystem());

            //Act
            string result = mockPath.GetTempFileName();

            //Assert
            Assert.True(result.Length > 0);
        }
        public void GetTempFileName_Called_CreatesEmptyFileInTempDirectory()
        {
            //Arrange
            MockFileSystem fileSystem = new MockFileSystem();
            MockPath       mockPath   = new MockPath(fileSystem);

            //Act
            string result = mockPath.GetTempFileName();

            Assert.True(fileSystem.FileExists(result));
            Assert.Equal(0, fileSystem.FileInfo.FromFileName(result).Length);
        }
        public void GetTempFileName_Called_ReturnsStringLengthGreaterThanZero()
        {
            //Arrange
            var mockPath = new MockPath(new MockFileSystem());

            //Act
            var result = mockPath.GetTempFileName();

            //Assert
            Assert.IsTrue(result.Length > 0);
        }
        public void GetTempFileName_Called_CreatesEmptyFileInTempDirectory()
        {
            //Arrange
            var fileSystem = new MockFileSystem();
            var mockPath = new MockPath(fileSystem);

            //Creating directory explicitly because in normal system Tempory path always exist.
            fileSystem.Directory.CreateDirectory(mockPath.GetTempPath());

            //Act
            var result = mockPath.GetTempFileName();

            Assert.True(fileSystem.FileExists(result));
            Assert.AreEqual(0, fileSystem.FileInfo.FromFileName(result).Length);
        }
        public void GetTempFileName_Called_ReturnsStringLengthGreaterThanZero()
        {
            //Arrange
            var fileSystem = new MockFileSystem();
            var mockPath = new MockPath(fileSystem);

            //Creating directory explicitly because in normal system Tempory path always exist.
            fileSystem.Directory.CreateDirectory(mockPath.GetTempPath());

            //Act
            var result = mockPath.GetTempFileName();

            //Assert
            Assert.IsTrue(result.Length > 0);
        }
        public void GetTempFileName_Called_CreatesEmptyFileInTempDirectory()
        {
            //Arrange
            var fileSystem = new MockFileSystem();
            var mockPath = new MockPath(fileSystem);

            //Act
            var result = mockPath.GetTempFileName();

            Assert.True(fileSystem.FileExists(result));
            Assert.AreEqual(0, fileSystem.FileInfo.FromFileName(result).Length);
        }