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); }
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); }