All pastes #257738 Raw Edit

Stuff

public text v1 · immutable
#257738 ·published 2006-11-25 18:28 UTC
rendered paste body
[Test]
		public void Junk()
		{
			Rectangle rect = new Rectangle();
			rect.Collide(new Sphere());
			
			Assert.AreEqual(1, 1);
		}

		public class Rectangle : ICollidable
		{
			public bool Collide(ICollidable collidable)
			{
				return true;
			}
			public bool Collide(Sphere sphere)
			{
				return true;
			}
		}
		
		public class Sphere : ICollidable
		{	
			public bool Collide(ICollidable collidable)
			{
				return true;
			}
		}
		
		public interface ICollidable
		{
			bool Collide(ICollidable collidable);	
		}