Beispiel #1
0
        public void TestGetRelativePath()
        {
            var environmentPathServiceMock = new Mock <IEnvironmentPathService>();

            environmentPathServiceMock
            .Setup(m => m.GetRelativePath(Directory, File))
            .Returns(FullPath);
            var pathService = new PathService(environmentPathServiceMock.Object);
            var path        = pathService.GetRelativePath(Directory, File);

            Assert.Equal(FullPath, path);
        }