Exemplo n.º 1
0
        public void Test()
        {
            this.Conditions = new IntegrationStatus[1] {
                IntegrationStatus.Failure
            };
            this.Activities = new ProjectActivity[1] {
                ProjectActivity.Building
            };

            string Serialized = Zation.Serialize("inclusionFilters", this);

            InclusionFilters Clone = (InclusionFilters)Zation.Deserialize(Serialized);

            if (Clone.Activities[0] != ProjectActivity.Building)
            {
                throw new Exception();
            }
        }
Exemplo n.º 2
0
        public void Test()
        {
            this.ExclusionFilters.Conditions = new IntegrationStatus[1] {
                IntegrationStatus.Failure
            };
            this.ExclusionFilters.Activities = new ProjectActivity[1] {
                ProjectActivity.Building
            };

            this.Project = "Project 1";

            string Serialized = Zation.Serialize("projectFilter", this);

            ProjectFilter Clone = (ProjectFilter)Zation.Deserialize(Serialized);

            if (Clone.ExclusionFilters.Activities[0] != ProjectActivity.Building)
            {
                throw new Exception();
            }
        }