Files
RebootKit/Tests/Runtime/Engine/PredicateTests.cs
2025-05-26 17:04:33 +02:00

26 lines
736 B
C#
Executable File

using NUnit.Framework;
using RebootKit.Engine.Foundation;
namespace Tests.Runtime.Engine {
public class PredicateTests {
[Test]
public void Predicate_And_TwoConditions_IsValid() {
IPredicate predicate = new PredicateAnd(new[] {
new PredicateConsts(true),
new PredicateConsts(true)
});
Assert.IsTrue(predicate.Evaluate());
}
[Test]
public void Predicate_Or_TwoConditions_IsValid() {
IPredicate predicate = new PredicateOr(new[] {
new PredicateConsts(true),
new PredicateConsts(false)
});
Assert.IsTrue(predicate.Evaluate());
}
}
}