Пример #1
0
        public void Equals_TrueWhenSameInstance()
        {
            // Arrange
            var model = new ConfigurationModel
            {
                ArtifactsPath                           = "TestPath1",
                PublishProfilePath                      = "TestPath2",
                SharedDacpacRepositoryPath              = "C:\\Temp\\Repository\\",
                ReplaceUnnamedDefaultConstraintDrops    = true,
                VersionPattern                          = "TestPattern",
                CommentOutUnnamedDefaultConstraintDrops = true,
                CreateDocumentationWithScriptCreation   = true,
                CustomHeader = "TestHeader",
                CustomFooter = "TestFooter",
                BuildBeforeScriptCreation = true,
                TrackDacpacVersion        = true,
                RemoveSqlCmdStatements    = true,
                DeleteRefactorlogAfterVersionedScriptGeneration = true,
                DeleteLatestAfterVersionedScriptGeneration      = true
            };

            // Act
            var areEqual = model.Equals(model);

            // Assert
            Assert.IsTrue(areEqual);
        }