public void Verify_Permission_Inversion() { var p0 = new FsPermission("rwx"); Assert.AreEqual(7, p0.Integer); Assert.AreEqual(true, p0.Read); Assert.AreEqual(true, p0.Write); Assert.AreEqual(true, p0.Execute); var p1 = p0.Invert(); Assert.AreEqual(0, p1.Integer); Assert.AreEqual(false, p1.Read); Assert.AreEqual(false, p1.Write); Assert.AreEqual(false, p1.Execute); }