public virtual void GetHomeDir() { Runtime.SetProperty("TestServerWebApp0.home.dir", "/tmp"); NUnit.Framework.Assert.AreEqual(ServerWebApp.GetHomeDir("TestServerWebApp0"), "/tmp" ); NUnit.Framework.Assert.AreEqual(ServerWebApp.GetDir("TestServerWebApp0", ".log.dir" , "/tmp/log"), "/tmp/log"); Runtime.SetProperty("TestServerWebApp0.log.dir", "/tmplog"); NUnit.Framework.Assert.AreEqual(ServerWebApp.GetDir("TestServerWebApp0", ".log.dir" , "/tmp/log"), "/tmplog"); }
public virtual void GetHomeDirNotDef() { ServerWebApp.GetHomeDir("TestServerWebApp00"); }