public void With_Should_return_EntitySetBuilder()
        {
            using World world = new World();

            EntitySetBuilder builder = world.GetEntities();

            Check.That(builder.WithEither <bool>().With <int>()).IsEqualTo(builder);
        }
Esempio n. 2
0
 /// <summary>
 /// Makes a rule to obsverve <see cref="Entity"/> with at least one component of type <typeparamref name="T1"/>, <typeparamref name="T2"/> or <typeparamref name="T3"/>.
 /// </summary>
 /// <typeparam name="T1">The first type of component.</typeparam>
 /// <typeparam name="T2">The second type of component.</typeparam>
 /// <typeparam name="T3">The third type of component.</typeparam>
 /// <param name="builder">The <see cref="EntitySetBuilder"/> on which to create the rule.</param>
 /// <returns>The given <see cref="EntitySetBuilder"/>.</returns>
 public static EntitySetBuilder WithEither <T1, T2, T3>(this EntitySetBuilder builder) => builder.WithEither(typeof(T1), typeof(T2), typeof(T3));