コード例 #1
0
        public void StringPropertyVersionMapsToValue()
        {
            var stringPropertyVersion = new PropertyRevision <string, DateTime>
            {
                Version = DateTime.Now,
                Value   = "TestValue"
            };

            Assert.Equal(stringPropertyVersion.Value, stringPropertyVersion.GetValue());
        }
コード例 #2
0
        public void IntPropertyVersionMapsToValue()
        {
            var intPropertyVersion = new PropertyRevision <int, DateTime>
            {
                Version = DateTime.Now,
                Value   = 123
            };

            Assert.Equal(intPropertyVersion.Value, intPropertyVersion.GetValue());
        }
コード例 #3
0
        public void StringListPropertyVErsionMapsToValue()
        {
            var stringListPropertyVersion = new PropertyRevision <IEnumerable <string>, DateTime>
            {
                Version = DateTime.Now,
                Value   = new List <string>
                {
                    "string1",
                    "string2",
                    "string3"
                }
            };

            Assert.Equal(stringListPropertyVersion.GetValue(), stringListPropertyVersion.Value);
        }