public void TestFoldMethod(string line, string actual, string expect) { if (direction.Equals("BOTH")) { string fs = MimeUtility.Fold(0, actuals); string us = MimeUtility.Unfold(fs); Assert.Equal(actuals, us); } else if (direction.Equals("FOLD")) { Assert.Equal(expected, MimeUtility.Fold(0, actuals)); } else if (direction.Equals("UNFOLD")) { Assert.Equal(expected, MimeUtility.Unfold(actuals)); } else { //Assert.Throws("Unknown direction: " + direction); } }