public void ReplaceFeatureTest() { Feature testingFeature = new DoubleFeature(new AbsoluteDistance(), 2.0); Feature replacement = new DoubleFeature(new AbsoluteDistance(), 6.0); Observation testingObs = new Observation(1); testingObs.AddFeature(testingFeature); testingObs.ReplaceFeature(0, replacement); Assert.AreSame(replacement, testingObs.GetFeature(0)); Assert.AreEqual(6.0, testingObs.GetFeature(0).FeatureValue); }