Пример #1
0
 public void TestDispositionType()
 {
     var db = new DispositionBuilder();
       db.SetDispositionType("inline");
       Assert.AreEqual("inline", db.DispositionType);
 }
Пример #2
0
 public void TestToString()
 {
     var disp = new DispositionBuilder();
       disp.SetDispositionType("attachment");
       disp.SetParameter("a", "b");
       {
     string stringTemp = disp.ToString();
     Assert.AreEqual(
       "attachment;a=b",
       stringTemp);
     }
 }