Exemplo n.º 1
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");
        }
Exemplo n.º 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");
        }