Example #1
0
        public void BaseDirectoryPath_GetsSet()
        {
            var boxHome = BoxTestUtilities.GetBoxHome();

            Assert.Equal(boxHome.GetBaseDirectoryPath(), Environment.GetEnvironmentVariable("HOME"));
            Environment.SetEnvironmentVariable("BOX_HOME", "/usr/local/bin");
            Assert.Equal(boxHome.GetBaseDirectoryPath(), "/usr/local/bin");
            Environment.SetEnvironmentVariable("BOX_HOME", "");
        }
Example #2
0
        public void BoxHomeDirectoryPath_GetsSet()
        {
            var boxHome = BoxTestUtilities.GetBoxHome();

            Assert.Equal(boxHome.GetBoxHomeDirectoryPath(), $"{Environment.GetEnvironmentVariable("HOME")}/.box");
        }