[Mono-list] NUnit examples, Mono1.9.1, no suitable entry point error

cknell cknell at onebox.com
Tue Aug 19 15:46:22 EDT 2008


I've recently downloaded Mono 1.9.1 and NUnit 2.4.8. I have a number of
examples of basic unit tests collected from a variety of sources. That's
what you do when the one you have won't work, you look for another. When
compiling the examples, I invariably get an error from Mono:

"error CS5001: Program 'fill in the blank' does not contain a static 'Main'
method suitable for an entry point"

Now, as a sometime Java programmer, I have a superficial understanding of
the message. If I insert a line like this: 

public static void Main(){}

the program compiles. But when I run the compiled program, I get neither an
error, nor the expected response. I surmise that is because when I run the
program, the Main() method is being called and the actual method I want to
run is being ignored.

Can anyone give me guidance on this?

Thanks.
-- 
View this message in context: http://www.nabble.com/NUnit-examples%2C-Mono1.9.1%2C-no-suitable-entry-point-error-tp19057246p19057246.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list