public void PermitSymbolicLinks() { using var pfs = new PhysFS(""); pfs.SymbolicLinksPermitted().Should().BeFalse(); pfs.PermitSymbolicLinks(true); pfs.SymbolicLinksPermitted().Should().BeTrue(); pfs.PermitSymbolicLinks(false); pfs.SymbolicLinksPermitted().Should().BeFalse(); }
void PermitSymbolicLinks() { using (var pfs = new PhysFS("")) { Assert.False(pfs.SymbolicLinksPermitted()); pfs.PermitSymbolicLinks(true); Assert.True(pfs.SymbolicLinksPermitted()); pfs.PermitSymbolicLinks(false); Assert.False(pfs.SymbolicLinksPermitted()); } }