public void LessThan2_Passed_NotPassed() { var target = new NameLengthRule("Х"); var result = target.Passed(); Assert.IsFalse(result); }
public void Between2And100_Passed() { var arr = new short[50]; var name = string.Join("", arr); var target = new NameLengthRule(name); var result = target.Passed(); Assert.IsTrue(result); }
public void MoreThan100_NotPassed() { var arr = new short[101]; var name = string.Join("", arr); var target = new NameLengthRule(name); var result = target.Passed(); Assert.IsFalse(result); }