public void GetPlanes() { Airport ny = Airport.GetInstance(); Plane p1 = ny.AcquireReusable(); Plane p2 = ny.AcquireReusable(); Assert.AreNotEqual <Plane>(p1, p2); }
public void CorrectRealase() { Airport ny = Airport.GetInstance(); Plane p1 = ny.AcquireReusable(); ny.RealaseReusable(p1); Plane p2 = ny.AcquireReusable(); Assert.AreEqual <Plane>(p1, p2); }
public void NotAirpotPlane() { Airport ny = Airport.GetInstance(); Plane p1 = ny.AcquireReusable(); ny.RealaseReusable(p1); Plane p2 = new Plane("sam"); ny.RealaseReusable(p2); }