473,381 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,381 software developers and data experts.

Object Test Bench

Hi,

My solution consists of 20 c# projects. When I switch to class view and
right click on any class, I don't have the create instance option.

I am using visual studio 2005 professional edition. If I create a simple
winform application, the create instance option in class view.

Is there any reason why I don't have created instance option in bigger
projects?

Thank you,

Alan
Feb 1 '06 #1
5 2253
Hello Alan,

Based on my understanding, the problem is that: Your solution has 20 C#
projects. However, the IDE doesn't have the "create instance" menu item
when you right click on any class in class view. Please correct me if I
have misunderstood anything.

I created a testing solution and 20 testing c# projects. However, it seems
the option is working on my side. Could you please help test from a simple
solution to see whether you can reproduce it on your side?

If it is convenient for you, could you please email us a repro sample and
so we will investigate it for you. Thanks very much.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://msdn.microsoft.com/subscripti...gednewsgroups/

This posting is provided "AS IS" with no warranties, and confers no rights.

Feb 1 '06 #2
Hi Yan,

Do you know any condition for the project or solution that prevent the
classes with project have the "create instance option" ?

Thank you,
Alan
"Yan-Hong Huang[MSFT]" <yh*****@online.microsoft.com> wrote in message
news:Z2**************@TK2MSFTNGXA02.phx.gbl...
Hello Alan,

Based on my understanding, the problem is that: Your solution has 20 C#
projects. However, the IDE doesn't have the "create instance" menu item
when you right click on any class in class view. Please correct me if I
have misunderstood anything.

I created a testing solution and 20 testing c# projects. However, it seems
the option is working on my side. Could you please help test from a simple
solution to see whether you can reproduce it on your side?

If it is convenient for you, could you please email us a repro sample and
so we will investigate it for you. Thanks very much.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://msdn.microsoft.com/subscripti...gednewsgroups/

This posting is provided "AS IS" with no warranties, and confers no
rights.

Feb 1 '06 #3
Hi Yan,

I think I found how to reproduce the problem; I appreciate if you could
confirm it with Microsoft tem:

Step 1) Use Visual Studio 2005 Professional Edition

Step 2) Create a solution with one WinForms application within it

At this point you have create instance option for all classes within the
class view

Step 3) Add a class library to the solution

Step 4) Go to the class view and choose any class of the class library you
just created

Step 5) Right click on that class, there is no "Create Instance" option!

This behavior seems to be by design, but I am wondering what is the
microsoft official explanation for this limitation.

Thank you,

Alan

"Yan-Hong Huang[MSFT]" <yh*****@online.microsoft.com> wrote in message
news:Z2**************@TK2MSFTNGXA02.phx.gbl...
Hello Alan,

Based on my understanding, the problem is that: Your solution has 20 C#
projects. However, the IDE doesn't have the "create instance" menu item
when you right click on any class in class view. Please correct me if I
have misunderstood anything.

I created a testing solution and 20 testing c# projects. However, it seems
the option is working on my side. Could you please help test from a simple
solution to see whether you can reproduce it on your side?

If it is convenient for you, could you please email us a repro sample and
so we will investigate it for you. Thanks very much.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://msdn.microsoft.com/subscripti...gednewsgroups/

This posting is provided "AS IS" with no warranties, and confers no
rights.

Feb 1 '06 #4
Oh. I ran into is issue. The solution was that in order to use the
Object Test Bench, the current class you want to test must be within
the current Active Project. So,

1. Find your class
2. Make the project that includes the class as the default active
project
3. You should see the option in the context menu in the class view

Not sure about this one; but I also think your class must define a
default contructor that takes no parameters. I hope everthing you are
able to get it to work this way.

Feb 1 '06 #5
Yep, that did the trick!

You are the man!

Thank you very much for help.

Alan
"tdavisjr" <td******@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Oh. I ran into is issue. The solution was that in order to use the
Object Test Bench, the current class you want to test must be within
the current Active Project. So,

1. Find your class
2. Make the project that includes the class as the default active
project
3. You should see the option in the context menu in the class view

Not sure about this one; but I also think your class must define a
default contructor that takes no parameters. I hope everthing you are
able to get it to work this way.

Feb 1 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Charles Rush | last post by:
I have some bench time and want to pick up a new language to, perhaps, reduce the amount of bench time in the future. To that end, I've been looking at either the C#/.NET (VB/.NET?) thing with the...
3
by: Jan Decaluwe | last post by:
I'm working on a unit test for a finite state machine (FSM). The FSM behavior is specified in a dictionary called transitionTable. It has a key per state with a tuple of possible transitions as...
16
by: Duncan Lissett | last post by:
Is there a Python implementation of Martin Richards benchmark Bench? Be interesting to add it to these www.lissett.com/ben/exp/bench1.htm
9
by: Andy B | last post by:
I have an object i want to test before putting into real code. How do i do that in vs 2005 standard?
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.