Partager via


CssIterationAttribute Constructor

Initializes a new instance of the CssIterationAttribute class.

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

Syntax

'Declaration
Public Sub New ( _
    cssIteration As String _
)
public CssIterationAttribute(
    string cssIteration
)
public:
CssIterationAttribute(
    String^ cssIteration
)
new : 
        cssIteration:string -> CssIterationAttribute
public function CssIterationAttribute(
    cssIteration : String
)

Parameters

  • cssIteration
    Type: String

    A string that identifies the corresponding project iteration.

Examples

The following example shows a CssIterationAttribute initialized and 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
      }
   }
}
Imports System
Imports Microsoft.VisualStudio.TestTools.UnitTesting

Namespace SampleTestProject
    <TestClass()> _
    Public Class UnitTest1
        <TestMethod()> _
        <CssIteration("vstfs:///Classification/Node/3ab4f649")> _
        <CssProjectStructure("vstfs:///Classification/Node/a8a26a10")> _
        Public Sub TestMethod1()
            ' TODO: Add test logic here
        End Sub
    End Class
End Namespace

.NET Framework Security

See Also

Reference

CssIterationAttribute Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace