VSTS Tip: Setting up Data Driven Tests

Here are two useful links for setting up data driven unit tests:

Comments (1)

  1. Terry says:

    Eric, is there anyway in VSTS to instaciate the test objects/data directly from xml using serialization.

    So rather then the follow DataSource example
    private TestContext m_testContext;
    public TestContext TestContext
    get { return m_testContext; }
    set { m_testContext = value; }
    [DataSource … ]
    public void TestMethod()

    I can have:
    public void TestMethod()
    TextContext tc = CreateFromXml();
    I’m sure I can do this explictly, but it would be great if rather then the ADO.NET only approach VSTS seems to support, you’d support the more general whidbey DataSourceObject.

Skip to main content