Beispiel #1
0
        public void Chaddr_NullAttr_Exception()
        {
            using var test = new TestFS(Test3ArchiveUrl, BaseTestFolder);

            var ddbPath = test.TestFolder;

            Action act = () => DDBWrapper.ChangeAttributes(ddbPath, null);

            act.Should().Throw <ArgumentException>();
        }
Beispiel #2
0
        public void Chaddr_HappyPath_Ok()
        {
            using var test = new TestFS(Test3ArchiveUrl, BaseTestFolder);

            var ddbPath = Path.Combine(test.TestFolder);

            var res = DDBWrapper.ChangeAttributes(ddbPath, new Dictionary <string, object> {
                { "public", true }
            });

            res["public"].Should().Be(true);

            res = DDBWrapper.ChangeAttributes(ddbPath, new Dictionary <string, object> {
                { "public", false }
            });

            res["public"].Should().Be(false);
        }