Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2010 Adding references to custom structures for testing

$
0
0
I have a VS2012 Visual Basic.NET application and am wanting to create some unit tests for this application.

In my application, I have a module that contains the following structure:

Code:

    <Serializable()> Public Structure MediaItem
        Dim longMediaID As Long
        Dim MediaObject As WMPLib.IWMPMedia
        Dim FileInfoObject As FileInfo
        Dim stringGenre As String
        Dim stringMediaDuration As String
        Dim doubleMediaLength As Double
    End Structure

How do I 'Import' the above MediaItem structure so that I can do some Unit Testing using this structure? Currently, the TestClass cannot 'see' this structure.

Viewing all articles
Browse latest Browse all 27554

Trending Articles