Git Product home page Git Product logo

Comments (3)

ericnewton76 avatar ericnewton76 commented on July 3, 2024

Can we get a unit test that doesnt have so much specificity? The paths you
have there are very specific, since you're testing for case, just create a
unit test where the directory name is C:\CaseSensitiveTest (for example).

On Wed, Jul 8, 2015 at 7:33 AM, Boris Modylevsky [email protected]
wrote:

Here is a unit test that reproduces the issue.

`
[Test]
public void
Move_DirectoryExistsWithDifferentCase_DirectorySuccessfullyMoved()
{
// Arrange
var fileSystem = new MockFileSystem();
fileSystem.AddDirectory(@"\builds\Builds\Suites\6.2.3.309 [6.2.3
135907]\TestShellHotFix\Data"); // HotFix with capital F
fileSystem.AddFile( @"\builds\Builds\Suites\6.2.3.309 [6.2.3
135907]\TestShellHotfix\Data\Content\DriverBuilder\ActiproSoftware.Navigation.Wpf.dll",
new MockFileData("abc"));

    // Act
    fileSystem.Directory.Move(@"\\builds\Builds\Suites\6.2.3.309 [6.2.3 135907]\TestShellHotfix", // HotFix with lower f
            @"\\builds\Builds\Suites\6.2.3.309 [6.2.3 135907]\Hotfix1 for CloudShell 6.2.3 GA [6.2.3.187]");

    // Assert
    Assert.IsTrue(
        fileSystem.File.Exists(@"\\builds\Builds\Suites\6.2.3.309 [6.2.3 135907]\Hotfix1 for CloudShell 6.2.3 GA [6.2.3.187]\Data\Content\DriverBuilder\ActiproSoftware.Navigation.Wpf.dll"));
}

`


Reply to this email directly or view it on GitHub
#134.

from system.io.abstractions.

borismod avatar borismod commented on July 3, 2024

@ericnewton76 Test was changed to be less specific. Can you review and accept the PR?
Thanks!

from system.io.abstractions.

tathamoddie avatar tathamoddie commented on July 3, 2024

Fixed by #135

from system.io.abstractions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.