public void GetApplicationPath_WithApplicationsPath_CombinesNameAndPath()
        {
            Mock<IKuduConfiguration> mock = new Mock<IKuduConfiguration>();
            mock.Setup(x => x.ApplicationsPath).Returns("C:\\Dummy\\Path");

            IPathResolver resolver = new PathResolver(mock.Object);

            Assert.Equal(resolver.GetApplicationPath("Foo"), "C:\\Dummy\\Path\\Foo");
        }
示例#2
0
        public void GetApplicationPath_WithApplicationsPath_CombinesNameAndPath()
        {
            Mock <IKuduConfiguration> mock = new Mock <IKuduConfiguration>();

            mock.Setup(x => x.ApplicationsPath).Returns("C:\\Dummy\\Path");

            IPathResolver resolver = new PathResolver(mock.Object);

            Assert.Equal(resolver.GetApplicationPath("Foo"), "C:\\Dummy\\Path\\Foo");
        }