public void ServiceSitePath_WithConfigurationSection_ReturnsSetting() { var configFake = new KuduConfigurationSectionFake(); configFake.SetFake("serviceSite", PathConfigurationElementFake.Fake("path", ".\\servicepath")); IKuduConfiguration config = CreateConfiguration(configFake, new NameValueCollection()); string expected = Path.GetFullPath(".\\root_path\\servicepath"); Assert.Equal(expected, config.ServiceSitePath); }
public void ApplicationsPath_WithConfigurationSection_ReturnsCombinedPath() { var configFake = new KuduConfigurationSectionFake(); configFake.SetFake("applications", PathConfigurationElementFake.Fake("path", ".\\sitespath")); IKuduConfiguration config = CreateConfiguration(configFake, new NameValueCollection()); string expected = Path.GetFullPath(".\\root_path\\sitespath"); Assert.Equal(expected, config.ApplicationsPath); }