Example #1
0
        public void TestUnixPath()
        {
            var sysConfig = new SystemConfig();

            sysConfig.Basepath = "file:/usr/lib";

            Assert.DoesNotThrow(() => sysConfig.GetPathForFileType(DicewareFileType.Special), "Assert that parsing a unix style path does not throw.");
        }
Example #2
0
        public void TestGetPathForFileType(string basepath, string expectedPath)
        {
            var sysConfig = new SystemConfig();

            sysConfig.Basepath = basepath;
            var expected = Path.GetFullPath(expectedPath);

            Assert.AreEqual(expected, sysConfig.GetPathForFileType(DicewareFileType.Special), "Assert that the expected path for a given filetype is returned.");
        }