Пример #1
0
        public TestArtifactInfo(IArtifact artifact) {
            var attr = artifact.GetAttribute<TestAttribute>();
            this.IsValid = true;
            this.Artifact = artifact;
            artifact.Changed += (sender, eventArgs) => {
                lock (this)
                {
                    if (eventArgs.ChangeType == ArtifactChangeTypes.Deleted)
                    {
                        this.IsValid = false;
                        this._testClassInfos = null;
                    }
                    else
                    {
                        this._testClassInfos = null;
                    }
                }
            };

            if (attr != null) {
                this.Description = attr.Description;



            }
        }