示例#1
0
        public void MatchingMapsDontRequireMigration()
        {
            var from = this.GenerateMap();
            var to   = this.GenerateMap();

            var target = MigrationPair.Of(from, to);

            string dontcare;

            Assert.False(target.RequiresUpdate(out dontcare));
        }
示例#2
0
        private void AssertRequiresUpdate(Action <IMap <Post> > action)
        {
            var from = this.GenerateMap();
            var to   = this.GenerateMap();

            action(to);

            var target = MigrationPair.Of(@from, to);

            string dontcare;

            Assert.True(target.RequiresUpdate(out dontcare));
        }