public void CorrectLatLonParamsAreIncluded() { var condition = new RangeCondition(new Range(new LatLon(-1.0, -2.01), new LatLon(-55.033, 77)), "testfield"); var definition = condition.Definition; Assert.AreEqual(definition, "(range field=testfield {'-1,-2.01','-55.033,77'})"); }
public void CorrectParamsAreIncluded() { var condition = new RangeCondition(new Range(3, 7, minInclusive: true), "testfield"); var definition = condition.Definition; Assert.That(definition, Is.EqualTo("(range field=testfield [3,7})")); }
public void CorrectDateParamsAreIncluded() { var condition = new RangeCondition(new Range(new DateTime(2013, 06, 05, 12, 22, 55, 112), new DateTime(2014, 07, 06, 13, 23, 56, 227)), "testfield"); var definition = condition.Definition; Assert.AreEqual(definition, "(range field=testfield {'2013-06-05T12:22:55.112Z','2014-07-06T13:23:56.227Z'})"); }
public void CorrectLatLonParamsAreIncluded() { var condition = new RangeCondition(new Range(new LatLon(-1.0, -2.01), new LatLon(-55.033, 77)), "testfield"); var definition = condition.Definition; Assert.AreEqual(definition, "(range field=testfield {'-1,-2.01','-55.033,77'})"); }
public void CorrectDateParamsAreIncluded() { var condition = new RangeCondition(new Range(new DateTime(2013, 06, 05, 12, 22, 55, 112), new DateTime(2014, 07, 06, 13, 23, 56, 227)), "testfield"); var definition = condition.Definition; Assert.AreEqual(definition, "(range field=testfield {'2013-06-05T12:22:55.112Z','2014-07-06T13:23:56.227Z'})"); }
public void CorrectParamsAreIncluded() { var condition = new RangeCondition(new Range(3, 7, minInclusive: true), "testfield"); var definition = condition.Definition; Assert.That(definition, Is.EqualTo("(range field=testfield [3,7})")); }
private void SetupAbilities() { BurstAttack ba = new BurstAttack(4, transform, projectilePrefab); ba.onBegin += () => { agent.isStopped = false; }; ba.onComplete += () => { agent.isStopped = true; }; RangeCondition rc = new RangeCondition(transform, player.transform, 20);//Rango de Ataque abilities.Add(rc, ba); }