package com.sibisoft.faizaniftikhartdd;

import static org.junit.Assert.*;

import org.junit.Test;

public class DollarTest 
{
	@Test
	public void testMultiplication() 
	{
			Dollar five= new Dollar(5);
			assertEquals(new Dollar(10), five.times(2));
			assertEquals(new Dollar(15), five.times(3));
	}
	@Test
	public void testFrancMultiplication() 
	{
		Franc five= new Franc(5);
		assertEquals(new Franc(10), five.times(2));
		assertEquals(new Franc(15), five.times(3));
	}
	@Test
	public void testEquality() 
	{
		assertTrue(new Dollar(5).equals(new Dollar(5)));
		assertFalse(new Dollar(5).equals(new Dollar(6)));
		assertTrue(new Franc(5).equals(new Franc(5)));
		assertFalse(new Franc(5).equals(new Franc(6)));
	}
}

@@ -734,19 +734,71 @@
 ranc(6)));%0D%0A
+%09%09assertFalse(new Franc(5).equals(new Dollar(5)));%0D%0A
 %09%7D%0D%0A%7D%0D%0A

test case testEquality fails due to different class uses same equal method so we have to make some modification in equal method