Problems generating unit tests when using a typed data set with a partial class

Hi,

I'm new to unit testing and had a problem with the following (VB.Net). I have a typed data set in my application and I have extend the functionality of this data set using a partial class (rather than inheriting it).

So, I've got a dataset called lets say "SomeDataSet". It has one table and one field. I then extend it by creating a new class like:

PartialPublicClass SomeDataSet

EndClass

(Even a blank partial class will cause a problem.)

Then in one of my classes I have a module level variable like the following

PublicClass SomeObject

Private mDataRowAs SomeDataSet.SomeTableRow

EndClass

(SomeTable is a table in my typed data set)

Then using VB.Net I select "Create Private Accessors" on my SomeObject class. The resulting output does not contain the mDataRow member. However, if I remove the partial class it does. I also have a similar problem with the "Create Tests" function.

I'm just wondering if anyone knows anything about this problem?

Thanks in advance.

[1720 byte] By [StephenArcher] at [2008-2-23]
# 1

Hi Stephan,

Thank you for taking the time to tell us about this issue. I have confirmed this is a bug in the product. I'll respond back when it is determined if we can get a fix in for this release or not. Given there isn't an easy work-around I am hopeful.

Thanks again,

Michael Brisset

Visual Studio Team System

MichaelBrisset-MSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...

Visual Studio Team System

Site Classified