void TickFeature() { featureIntervalCount++; if (featureIntervalCount >= featureInterval) { featureIntervalCount = 0; GenerateFeature(); if (featureManager.Count() > maxFeatureSize) { featureManager.Pop(); featureManager.RefreshPositions(); } } }
public void Count_TwoFeatures_ReturnsTwo() { // arrange FeatureManager featureManager = new FeatureManager(); featureManager.Add(new Feature <int>("F1")); featureManager.Add(new Feature <double>("F2")); // act int qty = featureManager.Count(); // assert Assert.AreEqual(2, qty); }