public void StartTest() { Console.WriteLine("testing fire"); IBullet Bullet = new Bullet_9mm(); Console.WriteLine(Bullet.Fire()); }
public void StartTest() { IBullet TestBullet1 = new Bullet_9mm(); IBullet TestBullet2 = new Bullet_762(); Clip TestClip1 = new Clip(TestBullet1, 5); Clip TestClip2 = new Clip(TestBullet2, 7); Console.WriteLine("---- Fire/Load Test ----"); Console.WriteLine("---- Testing Load ----"); Console.WriteLine("---- Loading proper caliber clip: ----"); Console.WriteLine(Load(TestClip1)); Console.WriteLine("---- Loading improper caliber clip: ----"); Console.WriteLine(Load(TestClip2)); Console.WriteLine("---- Testing Fire ----"); Console.WriteLine("---- Firing loaded clip ----"); Console.WriteLine(Fire()); Console.WriteLine("---- Firing single proper caliber bullet ----"); Console.WriteLine(Fire(TestBullet1)); Console.WriteLine("---- Firing single improper caliber bullet ----"); Console.WriteLine(Fire(TestBullet2)); }