473,498 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS05, failing to recognize that unit tests exist

We're using VS05 and today the units tests have stopped working in our
development environment. I'm sure that it is something really silly and
simple but I'll be darned if I can figure out what it is.

Here's a failure example: I created a simple little C# program called Test1.
I added a new class that has a public method Sum, which does the brilliant
function of adding two numbers together and returning the result.

I added a unit test by clicking on "Test->New Test" and selected the Unit
Test Wizard. It wanted to create a test project and this was named
TestTest1. A form opened and I navigated down through the namespaces until I
got to the method to be exercised. I checked this and hit OK. The TestTest1
project was added to the solution and the code to test Sum was created by
the wizard. I modified the test code so that it actually had valid values
with which to work. It all builds but I just don't seem to be able to get
any tests to actually run.

Selecting project Test1 results in the menu command "Test->Start Selected
Test Project with Debugger" being disabled.

Selecting project TestTest1 results in the menu command being enabled but
actuating this command results in "Cannot start test project 'TestTest1'
because the project does not contain any tests."

Right clicking on TestTest1 and selecting "Run Unit Tests" results in no
tests being run The Unit Test Runner appears but has no tests listed in it.

I added another method to ToBeTested called Add, right clicked on project
TestTest1 and selected Add->Unit Test...Again, I navigated down through the
name spaces and selected 'Add'. The method AddTest was created for me in the
test file. However, this time, a dialog appears. "Column 'TestType' does not
belong to table test." What does this mean? I get this same dialog when
trying to run tests sometimes, depending upon how the test run is started.

I've spent hours going around in circles on this. Please help!

--
Richard Lewis Haggard
General: www.Haggard-And-Associates.com
Please come visit here for thousands of good giggles!:
www.haggard-and-associates.com/Humor/humor.htm
Sep 10 '07 #1
1 3422
Oh! This may be an environmental problem. I deleted the solution's SUO file
and then the problem went away. I suspect that there is an interaction
between VS05, service pack 1, WPF, Enterprise Library, CAB and SCSF and how
the VS05 unit test functionality works. This solution worked on 3 out of 4
machines I tried it on. The remaining machine is still displaying the
"Column 'TestType' does not belong to table test" message box.
--
Richard Lewis Haggard
General: www.Haggard-And-Associates.com
Please come visit here for thousands of good giggles!:
www.haggard-and-associates.com/Humor/humor.htm

"Richard Lewis Haggard" <HaggardAtWorldDotStdDotComwrote in message
news:uE****************@TK2MSFTNGP06.phx.gbl...
We're using VS05 and today the units tests have stopped working in our
development environment. I'm sure that it is something really silly and
simple but I'll be darned if I can figure out what it is.

Here's a failure example: I created a simple little C# program called
Test1. I added a new class that has a public method Sum, which does the
brilliant function of adding two numbers together and returning the
result.

I added a unit test by clicking on "Test->New Test" and selected the Unit
Test Wizard. It wanted to create a test project and this was named
TestTest1. A form opened and I navigated down through the namespaces until
I got to the method to be exercised. I checked this and hit OK. The
TestTest1 project was added to the solution and the code to test Sum was
created by the wizard. I modified the test code so that it actually had
valid values with which to work. It all builds but I just don't seem to be
able to get any tests to actually run.

Selecting project Test1 results in the menu command "Test->Start Selected
Test Project with Debugger" being disabled.

Selecting project TestTest1 results in the menu command being enabled but
actuating this command results in "Cannot start test project 'TestTest1'
because the project does not contain any tests."

Right clicking on TestTest1 and selecting "Run Unit Tests" results in no
tests being run The Unit Test Runner appears but has no tests listed in
it.

I added another method to ToBeTested called Add, right clicked on project
TestTest1 and selected Add->Unit Test...Again, I navigated down through
the name spaces and selected 'Add'. The method AddTest was created for me
in the test file. However, this time, a dialog appears. "Column 'TestType'
does not belong to table test." What does this mean? I get this same
dialog when trying to run tests sometimes, depending upon how the test run
is started.

I've spent hours going around in circles on this. Please help!

--
Richard Lewis Haggard
General: www.Haggard-And-Associates.com
Please come visit here for thousands of good giggles!:
www.haggard-and-associates.com/Humor/humor.htm


Sep 10 '07 #2

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

Similar topics

5
1811
by: Jacob Page | last post by:
I have released interval-0.2.1 at http://members.cox.net/apoco/interval/. IntervalSet and FrozenIntervalSet objects are now (as far as I can tell) functionality equivalent to set and frozenset...
3
1653
by: bob | last post by:
Hello, I've tried a few testing frameworks with C# but so far haven't found a way to debug into a failing test. I'm used to S Unit (Smalltalk) where when a test fails you just right click on it...
14
2707
by: | last post by:
Hi! I'm looking for unit-testing tools for .NET. Somthing like Java has --> http://www.junit.org regards, gicio
18
1838
by: Scott David Daniels | last post by:
There has been a bit of discussion about a way of providing test cases in a test suite that _should_ work but don't. One of the rules has been the test suite should be runnable and silent at every...
72
5152
by: Jacob | last post by:
I have compiled a set og unit testing recommendations based on my own experience on the concept. Feedback and suggestions for improvements are appreciated: ...
176
8184
by: nw | last post by:
Hi, I previously asked for suggestions on teaching testing in C++. Based on some of the replies I received I decided that best way to proceed would be to teach the students how they might write...
48
2444
by: Ark Khasin | last post by:
Unit testing is an integral component of both "formal" and "agile" models of development. Alas, it involves a significant amount of tedious labor. There are test automation tools out there but...
20
2394
by: earthwormgaz | last post by:
Hello, I'm after doing some C++ unit testing, I'm using CppUnit. I like the look of RudeMocks, but it doesn't work for Solaris/Sparc, so its no good to me sadly. So, I have class A, and it...
2
1023
by: ReneMarxis | last post by:
Hello Can anyone tell me if there exist some tools for doing automated unit tests? What i need is something like NUnit ore #unit but with the possebility to feed the tests from external, eg....
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7004
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7167
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7208
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6890
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5464
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3095
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.