Ejemplo n.º 1
0
 public void Test2() {
     INakedObject value = new ProgrammableNakedObject(-7, null);
     Assert.That(facet.InvalidReason(target, value), Is.EqualTo("must be positive"));
 }
Ejemplo n.º 2
0
 public void Test1() {
     INakedObject value = new ProgrammableNakedObject(10, null);
     Assert.That(facet.InvalidReason(target, value), Is.Null);
 }