public void MaxLengthTest() { string actual = "afds"; SAssert.MaxLength(actual, 5); SAssert.MaxLength(actual, 4); XAssert.Throws <ArgumentException>(() => SAssert.MaxLength(actual, 2)); }