예제 #1
0
        public void Roundtrip_Rwx_Strings()
        {
            var p1 = new FsPermission("rwx");

            Assert.AreEqual("rwx", p1.ToRwxString());

            var p2 = new FsPermission("---");

            Assert.AreEqual("---", p2.ToRwxString());

            var p3 = new FsPermission(5);

            Assert.AreEqual("r-x", p3.ToRwxString());
        }