I currently use a block eval to test that I\'ve set an attribute as read-only. Is there a simpler way to do this?
As it currently stands, this question is not a g开发者_StackOverflow中文版ood fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question wil
I was reading TDD - How to start really thinking TDD? and I noticed many of the answers indicate that tests + application should take less time than just writing the application. In my experience, thi
I am doing TDD on a large Java project in eclipse and am finding it frustrating because every time I run a test I have to wait 30 seconds+ for eclipse to compile and refresh. I estimate that 80%+ of t
What would a simple unit test l开发者_StackOverflow中文版ook like to confirm that a certain controller exists if I am using Rhino Mocks, NUnit and ASP.NET MVC 2?I\'m trying to wrap my head around the
I\'ve run into this dilemma several times.Should my unit-tests duplicate the functionality of the method they are testing to verify its integrity? OR Should unit tests strive to test the method with n
Ok say I have the following model: class Country < ActiveRecord::Base va开发者_StackOverflowlidates_presence_of :name
I\'m not sure how to construct the question but I\'m interested to know what do you guys think of the following situations and which one would you prefer.
Greetings, I\'m fairly new to TDD and ran across a unit test that I\'m not entirely sure how to address.
I am recently introduced to the test-driven approach to development by my mentor at work, and he encourages me to write an unit-test whenenver \"it makes sense.\" I understand some benefits of having