Exemplo n.º 1
0
        public void Migration_operation_can_be_added_and_retrieved()
        {
            var builder   = new MigrationBuilder();
            var operation = new MyMigrationOperation();

            Assert.Equal(0, builder.Operations.Count);

            builder.AddOperation(operation);

            Assert.Equal(1, builder.Operations.Count);
            Assert.Same(operation, builder.Operations[0]);
        }
        public void Migration_operation_can_be_added_and_retrieved()
        {
            var builder = new MigrationBuilder();
            var operation = new MyMigrationOperation();

            Assert.Equal(0, builder.Operations.Count);

            builder.AddOperation(operation);

            Assert.Equal(1, builder.Operations.Count);
            Assert.Same(operation, builder.Operations[0]);
        }