void OnReferenceChanged(object s, ProjectReferenceEventArgs args)
 {
     if (NUnitProjectTestSuite.IsNUnitReference(args.ProjectReference))
     {
         UnitTestService.ReloadTests();
     }
 }
        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);
        }