示例#1
0
        public void Tag_HappyPath_Ok()
        {
            const string goodTag             = "pippo/pluto";
            const string goodTagWithRegistry = "https://test.com/pippo/pluto";

            using var test = new TestFS(Test3ArchiveUrl, BaseTestFolder);

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

            var tag = DroneDB.GetTag(ddbPath);

            tag.Should().BeNull();

            DroneDB.SetTag(ddbPath, goodTag);

            tag = DroneDB.GetTag(ddbPath);

            tag.Should().Be(goodTag);

            DroneDB.SetTag(ddbPath, goodTagWithRegistry);

            tag = DroneDB.GetTag(ddbPath);

            tag.Should().Be(goodTagWithRegistry);
        }