public void LengthTest() { string actual = "afds"; SAssert.Length(actual, 4); XAssert.Throws <ArgumentException>(() => SAssert.Length(actual, 6)); XAssert.Throws <ArgumentException>(() => SAssert.Length(actual, 2)); }