public void TestBoolean() { FilterParamIndexEquals index = MakeOne("BoolPrimitive", _testEventType); index.Put(false, _testEvaluator); VerifyBooleanPrimitive(index, false, 1); VerifyBooleanPrimitive(index, true, 0); }
public void TestLong() { FilterParamIndexEquals index = MakeOne("ShortBoxed", _testEventType); index.Put(((short)1), _testEvaluator); index.Put(((short)20), _testEvaluator); VerifyShortBoxed(index, (short)10, 0); VerifyShortBoxed(index, (short)1, 1); VerifyShortBoxed(index, (short)20, 1); VerifyShortBoxed(index, null, 0); Assert.AreEqual(_testEvaluator, index.Get((short)1)); Assert.IsTrue(index.ReadWriteLock != null); index.Remove((short)1); index.Remove((short)1); Assert.AreEqual(null, index.Get((short)1)); }
public void TestFloatPrimitive() { FilterParamIndexEquals index = MakeOne("FloatPrimitive", _testEventType); index.Put(1.5f, _testEvaluator); VerifyFloatPrimitive(index, 1.5f, 1); VerifyFloatPrimitive(index, 2.2f, 0); VerifyFloatPrimitive(index, 0, 0); }