CssIterationAttribute Class
TOC
Collapse the table of content
Expand the table of content

CssIterationAttribute Class

 

Represents the project iteration to which this test corresponds. This class cannot be inherited.

Namespace:   Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

System.Object
  System.Attribute
    Microsoft.VisualStudio.TestTools.UnitTesting.CssIterationAttribute

[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = false)]
public sealed class CssIterationAttribute : Attribute

NameDescription
System_CAPS_pubmethodCssIterationAttribute(String)

Initializes a new instance of the CssIterationAttribute class.

NameDescription
System_CAPS_pubpropertyCssIteration

Gets the iteration identifier for the test.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

This attribute is used to link a test with the project iteration. This is useful for reporting test information corresponding to the stage of the project lifecycle.

This attribute can be specified on a method. Only one instance of this attribute may be applied to a method.

For more information about using attributes, see Extending Metadata Using Attributes.

Legacy Code Example

The following example shows a CssIterationAttribute applied to a test method.

using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace SampleTestProject
{
   [TestClass]
   public class UnitTest1
   {
      [TestMethod]
      [CssIteration("vstfs:///Classification/Node/3ab4f649")]
      [CssProjectStructure("vstfs:///Classification/Node/a8a26a10")]
      public void TestMethod1()
      {
         // TODO: Add test logic here
      }
   }
}

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft