Re: Simple question

"Butler, Tony (London)" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <289EBA527A6A47418295E92F70ACFB3203502284@MLLNA225MB.emea.win.ml.com>
Hi,
 
Michael is of course, correct - you can write whatever you like in a
unit test - it is, after all, just regular .NET code.
I would have to ask though, if you don't test the values, how do you
know whether the code works or not?
Surely the point of tools like nunit is to allow you to automate your
testing and remove the need for manual eye-balling test results?
 
cheers
 
Tony
 
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Schnick,
Michael
Sent: 21 May 2008 10:15
To: Jerome Gransac; NUnit
Subject: Re: [Nunit-users] Simple question



	Hi Jerome,

	 

	I'm using Nunit to dispatch my tests, only.

	You can use whatever code you like within the unit tests, so a
simple WriteLine is no problem at all.

	 

	I'm gathering a lot of data in the tests and write them to
stdout as well as an own logging facility.

	Maybe this could help you, too.

	 

	In that case, you don't use assertions at all, or only use
assertions to compare the values to thresholds if you like to.

	 

	Best regards

	Michael

	 

	
  _____  


	From: [email protected]
[mailto:[email protected]] On Behalf Of Jerome
Gransac
	Sent: Mittwoch, 21. Mai 2008 11:00
	To: NUnit
	Subject: [Nunit-users] Simple question

	 

	Hi to all

	 

	I am a newbie and I have a simple question. 

	Maybe some of you will answer that it is not the purpose of Unit
testing, but here is my question:

	 

	Is it possible to with NUnit to display values (of results)
instead of assertions?

	 

	I mean, i don't want to test values (like
Assert.AreEqual(....)), i just need to display some values that i would
use as a test result

	 

	Any help would be appreciated
	
	 

	 

	-- 
	----------------------------------------
	Jerome GRANSAC - SUPPORT Live Music !!
	Mob: +33 (0) 662 771 822
	[email protected]  / www.jazzoscope.com
	
	"Le jazz, c'est l'expression de l'hysterie masculine" - Agnes
Jaoui
	"I am like a bird. You don't have to listen to me, but I am
there" - Sun Ra
	"Jazz isn't dead. It just smells funny" - FZ
--------------------------------------------------------

This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing.
--------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.