/// <summary> /// Constructor. /// </summary> public ModelAttribute(string xtcFileName, int priority, string subarea, TestCaseSecurityLevel securityLevel, string name) : base(name) { Priority = priority; SubArea = subarea; SecurityLevel = securityLevel; _xtcFileName = xtcFileName; }
/// <summary> /// Constructor that leaves priority at default. Allows defaults attribute to specify /// priority for entire class or assembly. /// This is obsolete, but not enforced by compiler, as 3.5 Build is being harsh wrt Warnings as Errors on feature code. /// </summary> //[Obsolete(ObsoleteConstructorMessage)] public TestAttribute(string subArea, TestCaseSecurityLevel securityLevel, string name) { // Since this() constructor calls go from root type to immediate parent, // this constructor is oldest in the chain so we can safely set // priority to the -1 unset magic number. Any calling constructor // will have it's chance to set priority and override this value. this.Priority = UnsetInt; this.Timeout = UnsetInt; if (String.IsNullOrEmpty(subArea)) { Trace.TraceWarning("TestAttribute SubArea should not be empty."); } this.SubArea = subArea; this.SecurityLevel = securityLevel; this.Name = name; this.ExecutionGroupingLevel = ExecutionGroupingLevel.InternalDefault_DontUseThisLevel; }
/// <summary> /// Constructor that takes everything. /// This is obsolete, but not enforced by compiler, as 3.5 Build is being harsh wrt Warnings as Errors on feature code. /// </summary> //[Obsolete(ObsoleteConstructorMessage)] public TestAttribute(int priority, string subArea, TestCaseSecurityLevel securityLevel, string name) : this(subArea, securityLevel, name) { this.Priority = priority; }