Exemplo n.º 1
0
 public static void That(object actual, IResolveConstraint constraint)
 {
     if (!constraint.Matches(actual))
     {
         var s = new StringWriter();
         constraint.WriteMessageTo(s);
         throw new AssertionException(s.ToString());
     }
 }
Exemplo n.º 2
0
		public static void That (object actual, IResolveConstraint constraint)
		{
			if (!constraint.Matches (actual)) {
				var s = new StringWriter ();
				constraint.WriteMessageTo (s);
				throw new AssertionException (s.ToString ());
			}
		}