Beispiel #1
0
 public void AddCanCloseMessages(CloseToken token)
 {
     if (_stateManager.IsDirty())
     {
         string message = "'{0}' has unsaved changes and will be saved on close".ToFormat(_test.Name);
         token.AddMessage(message);
     }
 }
Beispiel #2
0
 public void AddCanCloseMessages(CloseToken token)
 {
     lock (_tests)
     {
         if (_tests.Count > 0)
         {
             token.AddMessage(TESTS_ARE_RUNNING);
         }
     }
 }
 public void AddCanCloseMessages(CloseToken token)
 {
     token.AddMessage("Test1 has unsaved changes");
     token.AddMessage("Tests are running");
 }