title: How to test if function does not throw exception?
body: <p>I have this function and test:</p>
  
  <pre><code>public void SaveForWeb ()
  {
      UpdateGameState();
      try
      {
          PlayerPrefs.SetFloat(Helper.EXP_KEY, experience);
          PlayerPrefs.SetFloat(Helper.SCORE_KEY, score);
          // other properties that need to be saved in PlayerPrefs
  
          PlayerPrefs.Save();
      }
      catch (Exception ex)
      {
          Debug.Log(ex.Message);
      }
  }
  
  [Test]
  [Category(Helper.TEST_CATEGORY_SAVE_FOR_WEB)]
  public void SaveForWebTest ()
  {
      // arrange
      var slgdController = FakeSaveLoadGameDataController();
      TestDelegate myDelegate = () =&gt; {};
  
      // act
      slgdController.SaveForWeb();
  
      // assert
      Assert.DoesNotThrow(myDelegate);
  }
  </code></pre>
  
  <p>But I feel there is no connection between the assertion and the call of <code>SaveForWeb()</code> function. </p>
  
  <p>Note: SaveForWeb() uses PlayerPrefs from the Unity3D API which might throw PlayerPrefsException if the local file exceedes 1 MB.</p>
  
  <p>Is this the right way to assert if function does not throw exception?</p>