J
JohnGoogle
Hi,
I'm new to Visual C# and I am looking for guidance with structuring
projects.
I am wanting to develop a DLL assembly which will contain all my common
classes which will be used by various projects. During development of
this DLL assembly I have decided to have a second project which will be
a console application whose entire job is to run code to test the
classes to iron out bugs etc.
I have structured this in the following way:
A. I have a solution called XYZCommon (where XYZ is the Company Name).
B. This solution has two projects. Project 1 is called XYZCommon and
will create the DLL assembly. Project 2 is called XYZCommonTest which
is a console application. This will contain the code to test the
classes in XYZCommon.
C. Project XYZCommonTest is set as the Startup Project for the
solution. It also references project XYZCommon.
D. Project XYZCommonTest has multiple 'static void Main(string[] args)'
entry points in different classes. Each entry point will run a test for
the corresponding class in XYZCommon.
E. Before I run each test I set the required entry point as the Startup
Object property in project XYZCommonTest's project property page.
This set up is allowing me to edit and test each class as I go within a
single solution. Is this a sensible way to develop and test a DLL
assembly? What do other people do?
Thanks in advance for any advice!
I'm new to Visual C# and I am looking for guidance with structuring
projects.
I am wanting to develop a DLL assembly which will contain all my common
classes which will be used by various projects. During development of
this DLL assembly I have decided to have a second project which will be
a console application whose entire job is to run code to test the
classes to iron out bugs etc.
I have structured this in the following way:
A. I have a solution called XYZCommon (where XYZ is the Company Name).
B. This solution has two projects. Project 1 is called XYZCommon and
will create the DLL assembly. Project 2 is called XYZCommonTest which
is a console application. This will contain the code to test the
classes in XYZCommon.
C. Project XYZCommonTest is set as the Startup Project for the
solution. It also references project XYZCommon.
D. Project XYZCommonTest has multiple 'static void Main(string[] args)'
entry points in different classes. Each entry point will run a test for
the corresponding class in XYZCommon.
E. Before I run each test I set the required entry point as the Startup
Object property in project XYZCommonTest's project property page.
This set up is allowing me to edit and test each class as I go within a
single solution. Is this a sensible way to develop and test a DLL
assembly? What do other people do?
Thanks in advance for any advice!