CoinTest -...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
require 'test/unit' require 'Coin' #Coded by srihari jagan vasista #Includes all the testcases for the Coin Class class CoinTest < Test::Unit::TestCase c def setup @c ="dime",10) end e def test_default_Coin_Name
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: assert_equal(&quot;dime&quot;, end e def test_default_Coin_getValue() assert_equal(10,@c.getValue()); end e def test_default_Coin_getName() assert_equal(&quot;dime&quot;,@c.getName()) end e end...
View Full Document

This document was uploaded on 05/04/2011.

Ask a homework question - tutors are online