예제 #1
0
 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");
 }
예제 #2
0
 public virtual void GetHomeDirNotDef()
 {
     ServerWebApp.GetHomeDir("TestServerWebApp00");
 }