Ejemplo n.º 1
0
        public void ContainerFieldValueCanBeAdded()
        {
            var history = new History();

            history.AddContainerFieldValue(             // new field is created
                "buldings",
                new(),
                new Date(1, 1, 1)
                );
            history.AddContainerFieldValue(              // existing field is updated
                "buldings",
                new() { "aqueduct", "temple" },
                new Date(867, 1, 1)
                );
            Assert.Collection(history.ContainerFields,
                              item1 => Assert.Equal("buldings", item1.Key)
                              );
            Assert.Collection(history.ContainerFields["buldings"].ValueHistory,
                              item1 => {
                Assert.Equal(new Date(1, 1, 1), item1.Key);
                Assert.Equal(new(), item1.Value);
            },