Esempio n. 1
0
        public void CanReorder_should_throw_exception_if_field_ids_do_not_covers_all_fields()
        {
            var command = new ReorderFields {
                FieldIds = new List <long> {
                    1
                }
            };

            Assert.Throws <ValidationException>(() => GuardSchema.CanReorder(schema_0, command));
        }
Esempio n. 2
0
        public void CanReorder_should_not_throw_exception_if_field_ids_are_valid()
        {
            var command = new ReorderFields {
                FieldIds = new List <long> {
                    1, 2
                }
            };

            GuardSchema.CanReorder(schema_0, command);
        }
Esempio n. 3
0
        public void CanReorder_should_throw_exception_if_field_ids_contains_invalid_id()
        {
            var command = new ReorderFields {
                FieldIds = new List <long> {
                    1, 3
                }
            };

            Assert.Throws <ValidationException>(() => GuardSchema.CanReorder(schema_0, command));
        }