Пример #1
0
        public void GetLinkTypeArgument_WithSymbolicDirectory_WillReturnSymbolicString()
        {
            // Arrange
            const string testSourcePath = @"c:\demo\";
            UnixLinker   unixLinker     = new UnixLinker(testConsole, testFileSystem, testProcess.Object);

            // Act
            string result = unixLinker.GetLinkTypeArgument(testFileSystem, ConfigLink.LinkType.Symbolic, testSourcePath);

            // Assert
            Assert.AreEqual("-s", result);
        }
Пример #2
0
        public void GetLinkTypeArgument_PathDoesNotExist_WillReturnEmptyString()
        {
            // Arrange
            const string testSourcePath = @"some random path that does not exist";
            UnixLinker   unixLinker     = new UnixLinker(testConsole, testFileSystem, testProcess.Object);

            // Act
            string result = unixLinker.GetLinkTypeArgument(testFileSystem, ConfigLink.LinkType.Symbolic, testSourcePath);

            // Assert
            Assert.IsEmpty(result);
        }
Пример #3
0
        public void GetLinkTypeArgument_WithHardFile_WillReturnEmptyString()
        {
            // Arrange
            const string testSourcePath = @"c:\config.linker";
            UnixLinker   unixLinker     = new UnixLinker(testConsole, testFileSystem, testProcess.Object);

            // Act
            string result = unixLinker.GetLinkTypeArgument(testFileSystem, ConfigLink.LinkType.Hard, testSourcePath);

            // Assert
            Assert.IsEmpty(result);
        }