public void TrackedObjectStillAliveTest() { IObjectTracker objectTracker = ObjectTracker.Instance; objectTracker.ForceTrack = true; objectTracker.TrackObject(trackObj); Assert.AreEqual(1, objectTracker.GetLiveTrackedObjects().Count()); }
public void TrackedObjectDeadAfterNoRefTest() { IObjectTracker objectTracker = ObjectTracker.Instance; objectTracker.ForceTrack = true; objectTracker.TrackObject(trackObj); trackObj = null; Assert.AreEqual(0, objectTracker.GetLiveTrackedObjects().Count()); }