Ejemplo n.º 1
0
 public void IsNull_WithNullNinja_ShouldPass()
 {
     var nullNinja = new Ninja(name: null);
     ObjectAssertionResult result = nullNinja.Evaluate(n => n.Property(x => x.Name).IsNull());
     Assert.IsTrue(result.succeeded);
     Assert.AreEqual(
         "Ninja: ( )Name = null (expected: null)",
         result.PrintLog());
 }
Ejemplo n.º 2
0
 public void IsEmpty_WithEmptyNinja_ShouldPass()
 {
     var ninja = new Ninja("");
     ObjectAssertionResult result = ninja.Evaluate(n => n.Property(x => x.Name).IsEmpty());
     Assert.IsTrue(result.succeeded);
     Assert.AreEqual(
         "Ninja: ( )Name = '' (expected: empty string)",
         result.PrintLog());
 }
Ejemplo n.º 3
0
 public static short ShortAge(this Ninja ninja)
 {
     return((short)ninja.Age);
 }
Ejemplo n.º 4
0
 public Dojo(Ninja master, DateTime founded)
 {
     this.master = master;
     this.founded = founded;
 }
Ejemplo n.º 5
0
 public Dojo(Ninja master, DateTime founded)
 {
     this.master  = master;
     this.founded = founded;
 }