Ejemplo n.º 1
0
 public static bool IsUnderLength(this VAssertSingle <string> assert, int maximumLength)
 {
     return(assert.IsTrue(assert.Value.Length < maximumLength, "String length cannot exceed " + maximumLength));
 }
Ejemplo n.º 2
0
 public static bool IsGreaterThan <T>(this VAssertSingle <T> assert, int maximum)
     where T : IComparable
 {
     // TODO: Haven't actually tested this yet
     return(assert.IsTrue(assert.Value.CompareTo(maximum) > 0, "Must be greater than " + maximum));
 }
Ejemplo n.º 3
0
 public static bool IsEqual(this VAssertSingle <string> assert, string expected)
 {
     return(assert.IsTrue(assert.Value.Equals(expected), "Strings must be equal"));
 }