Exemplo n.º 1
0
 public static void DefaultName()
 {
     using var condition = new AbstractConditionImpl(Observable.Empty <object>());
     Assert.AreEqual("AbstractConditionImpl", condition.Name);
     using var negated = condition.Negate();
     Assert.AreEqual("Not_AbstractConditionImpl", negated.Name);
 }
Exemplo n.º 2
0
 public static void ExplicitName()
 {
     using var condition = new AbstractConditionImpl(Observable.Empty <object>())
           {
               Name = "Explicit name"
           };
     Assert.AreEqual("Explicit name", condition.Name);
     using var negated = condition.Negate();
     Assert.AreEqual("Not_Explicit name", negated.Name);
 }