Exemple #1
0
 public void SettingEmptyDictionaryThrows()
 {
     Assert.IsTrue(
         ExtExcept.IsThrowsException <ArgumentException>(
             () => {
         var s = new Spacefier();
         s.SetDictonary(new string[] { });
     }));
 }
Exemple #2
0
 public void SingleWordDictionaryWontThrow()
 {
     Assert.IsFalse(
         ExtExcept.IsThrowsException <ArgumentException>(
             () => {
         var s = new Spacefier();
         s.SetDictonary(SingleWordDic);
         new Spacefier(SingleWordDic);
     }));
 }