public void Returns_null_if_any_value_in_the_given_buffer_is_null() { var model = BuildModel(); var type = model.FindEntityType(typeof(Banana)); var random = new Random(); var key = new CompositeKeyValueFactory( type.FindPrimaryKey()) .Create( new[] { type.FindProperty("P6"), type.FindProperty("P5") }, new ValueBuffer(new object[] { 7, "Ate", random, 77, null, random })); Assert.Equal(KeyValue.InvalidKeyValue, key); }
public void Returns_null_if_any_value_in_the_given_buffer_is_null() { var model = BuildModel(); var type = model.FindEntityType(typeof(Banana)); var random = new Random(); var key = new CompositeKeyValueFactory( type.FindPrimaryKey()) .Create( new[] { type.FindProperty("P6"), type.FindProperty("P5") }, new ValueBuffer(new object[] { 7, "Ate", random, 77, null, random })); Assert.Equal(KeyValue.InvalidKeyValue, key); }