Пример #1
0
 void OnReferenceChanged(object s, ProjectReferenceEventArgs args)
 {
     if (NUnitProjectTestSuite.IsNUnitReference(args.ProjectReference))
     {
         UnitTestService.ReloadTests();
     }
 }
Пример #2
0
        public UnitTest CreateUnitTest(WorkspaceObject entry)
        {
            UnitTest test = null;

            if (entry is DotNetProject)
            {
                test = NUnitProjectTestSuite.CreateTest((DotNetProject)entry);
            }

            UnitTestGroup grp = test as UnitTestGroup;

            if (grp != null && !grp.HasTests)
            {
                test.Dispose();
                return(null);
            }

            return(test);
        }