コード例 #1
0
        public void FilterWorks()
        {
            var filter = new ExcludeExperimentalMigrations();

            filter.Exclude(new M20190718160123_WithAttributeMigration()).Should().BeTrue();
            filter.Exclude(new M20190718160124_WithoutAttributeMigration()).Should().BeFalse();
        }
コード例 #2
0
 public void HasExperimentalAttributeTrue()
 {
     ExcludeExperimentalMigrations.HasExperimentalAttribute(new M20190718160123_WithAttributeMigration())
     .Should().BeTrue();
 }
コード例 #3
0
 public void HasExperimentalAttributeFalse()
 {
     ExcludeExperimentalMigrations.HasExperimentalAttribute(new M20190718160124_WithoutAttributeMigration())
     .Should().BeFalse();
 }
コード例 #4
0
 public void HasExperimentalAttributeNull()
 {
     ExcludeExperimentalMigrations.HasExperimentalAttribute(null)
     .Should().BeFalse();
 }