private void OnProjectChanged( object sender, ProjectEventArgs e ) { switch ( e.type ) { case ProjectChangeType.ActiveConfig: case ProjectChangeType.Other: if( TestProject.IsLoadable ) TryToLoadOrReloadTest(); break; case ProjectChangeType.AddConfig: case ProjectChangeType.UpdateConfig: if ( e.configName == TestProject.ActiveConfigName && TestProject.IsLoadable ) TryToLoadOrReloadTest(); break; case ProjectChangeType.RemoveConfig: if ( IsTestLoaded && TestProject.Configs.Count == 0 ) UnloadTest(); break; default: break; } }