コード例 #1
0
        public void Set_Value_delegates_to_Entry()
        {
            var property = new Model().AddEntityType(typeof(object)).AddProperty("Kake", typeof(string));

            var internalEntryMock = CreateInternalEntryMock(property);
            var columnModification = new ColumnModification(
                internalEntryMock.Object,
                property,
                property.TestProvider(),
                new ParameterNameGenerator().GenerateNext,
                isRead: false,
                isWrite: false,
                isKey: false,
                isCondition: false,
                isConcurrencyToken: false);
            var value = new object();

            columnModification.Value = value;

            internalEntryMock.Verify(m => m.SetCurrentValue(property, It.IsAny<object>()), Times.Once);
        }