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; }
    }
    [TestMethod]
    [DeploymentItem(“FPNWIND.MDB”)]
    [DataSource … ]
    public void TestMethod()
    {
    TestContext.DataRow….,
    TestContext.DataRow….
    }

    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.