Exemplo n.º 1
0
        public void GetFilename_ShouldMatchWhenPassedInvalidChars()
        {
            // Arrange
            var expected = @"C:\temp\This is my filename.mp4";
            var fixer    = new FilenameFixer("This is my >>filename<<.mp4", "C:\\temp\"");

            // Act
            var actual = fixer.GetFilename();

            // Assert
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void GetFilename_ShouldMatch()
        {
            // Arrange
            var expected = @"C:\temp\This is my filename.mp4";
            var fixer    = new FilenameFixer("This is my filename.mp4", "C:\\temp");

            // Act
            var actual = fixer.GetFilename();

            // Assert
            Assert.AreEqual(expected, actual);
        }