public void ReturnsRoot()
        {
            var testee = new InMemoryDirectoryInfo(this.fileSystem, FolderInFolder);

            IDirectoryInfo result = testee.Root;

            result.FullName.Should().Be(Drive);
        }
        public void ReturnsNull_WhenDirectoryIsRoot(string root)
        {
            var testee = new InMemoryDirectoryInfo(this.fileSystem, root);

            IDirectoryInfo result = testee.Parent;

            result.Should().BeNull();
        }
        public void ReturnsParentFolder(string folder, string parent)
        {
            var testee = new InMemoryDirectoryInfo(this.fileSystem, folder);

            IDirectoryInfo result = testee.Parent;

            result.FullName.Should().Be(parent);
        }
        public void ReturnsRoot()
        {
            var testee = new InMemoryDirectoryInfo(this.fileSystem, FolderInFolder);

            IDirectoryInfo result = testee.Root;

            result.FullName.Should().Be(Drive);
        }
        public void ReturnsParentFolder(string folder, string parent)
        {
            var testee = new InMemoryDirectoryInfo(this.fileSystem, folder);

            IDirectoryInfo result = testee.Parent;

            result.FullName.Should().Be(parent);
        }
        public void ReturnsNull_WhenDirectoryIsRoot(string root)
        {
            var testee = new InMemoryDirectoryInfo(this.fileSystem, root);

            IDirectoryInfo result = testee.Parent;

            result.Should().BeNull();
        }