예제 #1
0
        public void GetEditableColumns_does_not_return_key()
        {
            ModelDefinition modelDefinition = new ModelDefinition(typeof(Test));

            IEnumerable <Column> columns = modelDefinition.GetEditableColumns();

            columns.Any(x => string.Equals(x.Name, nameof(Test.Id))).MustBeFalse();
        }
예제 #2
0
        public void GetEditableColumns_returns_edtiable_columns()
        {
            ModelDefinition modelDefinition = new ModelDefinition(typeof(Test));

            IEnumerable <Column> columns = modelDefinition.GetEditableColumns();

            columns.Count().MustBe(1);
            columns.First().Name.MustBe(nameof(Test.Foo));
        }