Пример #1
0
        public void TestSettingAbsolutePath()
        {
            var TestAbsolutePath = "/home/mgunn/tmp/avatar.jpg";

            var file = new Jarvus.File.LocalFile(TestAbsolutePath);

            Assert.Equal(file.AbsolutePath(), TestAbsolutePath);
        }
Пример #2
0
        public void TestAbsolutePathFromBaseAndRelativePath()
        {
            var TestAbsolutePath = "/home/mgunn/tmp/avatar.jpg";

            var file = new Jarvus.File.LocalFile {
                AbsoluteBase = "/home/mgunn",
                RelativePath = "tmp/avatar.jpg"
            };

            Assert.Equal(file.AbsolutePath(), TestAbsolutePath);
        }