public void GetTrackedMethods_Locates_TestMethods_Within_TestAssembly() { // act var methods = _manager.GetTrackedMethods(typeof(TrackedMethodStrategyManagerTests).Assembly.Location); // assert Assert.AreNotEqual(0, methods.Count(x => x.Strategy == "MSTestTest")); Assert.AreNotEqual(0, methods.Count(x => x.Strategy == "NUnitTest")); Assert.AreNotEqual(0, methods.Count(x => x.Strategy == "xUnitTest")); }
public Model.TrackedMethod[] GetTrackedMethods() { if (SourceAssembly == null) { return(null); } return(_trackedMethodStrategyManager.GetTrackedMethods(ModulePath)); }
public TrackedMethod[] GetTrackedMethods() { if (SourceAssembly == null) { return(null); } var modulePath = ModulePath; if (!System.IO.File.Exists(modulePath)) { modulePath = Path.Combine(_commandLine.TargetDir, Path.GetFileName(modulePath)); } return(_trackedMethodStrategyManager.GetTrackedMethods(modulePath)); }