public void Finds_Repeated_Number(Type detectorType) { ICycleDetector target = Activator.CreateInstance(detectorType) as ICycleDetector; int actual = target.Detect(this.onlyOneDuplicateNumber); Assert.AreEqual(3, actual); }