public void TestVariablesResolution() { SpecialFolderVariableSource vs = new SpecialFolderVariableSource(); // existing vars Assert.AreEqual(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), vs.ResolveVariable("ApplicationData")); Assert.AreEqual(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), vs.ResolveVariable("desktopDirectory")); Assert.AreEqual(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), vs.ResolveVariable("programFiles")); Assert.AreEqual(Environment.GetFolderPath(Environment.SpecialFolder.Personal), vs.ResolveVariable("personal")); // non-existant variable Assert.IsNull(vs.ResolveVariable("dummy")); }