Ejemplo n.º 1
0
        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"));
        }
Ejemplo n.º 2
0
 public Model.TrackedMethod[] GetTrackedMethods()
 {
     if (SourceAssembly == null)
     {
         return(null);
     }
     return(_trackedMethodStrategyManager.GetTrackedMethods(ModulePath));
 }
Ejemplo n.º 3
0
        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));
        }