public void Paths_Expected_JSONSources()
{
var workspaceID = Guid.NewGuid();
var workspacePath = EnvironmentVariables.GetWorkspacePath(workspaceID);
var servicesPath = Path.Combine(workspacePath, "Services");
var sourcesPath = Path.Combine(workspacePath, "Sources");
var pluginsPath = Path.Combine(workspacePath, "Plugins");
try
{
Directory.CreateDirectory(servicesPath);
Directory.CreateDirectory(sourcesPath);
Directory.CreateDirectory(pluginsPath);
var xml = XmlResource.Fetch("Calculate_RecordSet_Subtract");
xml.Save(Path.Combine(servicesPath, "Calculate_RecordSet_Subtract.xml"));
xml = XmlResource.Fetch("HostSecurityProviderServerSigned");
xml.Save(Path.Combine(sourcesPath, "HostSecurityProviderServerSigned.xml"));
var testResources = new Resources();
var actual = testResources.Paths("", workspaceID, Guid.Empty);
Assert.AreEqual("[\"Integration Test Services\\\\Calculate_RecordSet_Subtract\"]", actual);
}
finally
{
if(Directory.Exists(workspacePath))
{
DirectoryHelper.CleanUp(workspacePath);
}
}
}