public virtual void TestBackwardsCompatibility()
        {
            RVFDataset <string, string> dataset = new WeightedRVFDataset <string, string>();
            RVFDatum <string, string>   datum1  = NewRVFDatum(null, "a", "b", "a");

            dataset.Add(datum1);
            RVFDatum <string, string> datum2 = NewRVFDatum(null, "a", "b", "a");

            dataset.Add(datum2);
            NUnit.Framework.Assert.AreEqual(1.0f, ((WeightedRVFDataset <string, string>)dataset).GetWeights()[0], 1e-10);
            NUnit.Framework.Assert.AreEqual(1.0f, ((WeightedRVFDataset <string, string>)dataset).GetWeights()[1], 1e-10);
        }
        public virtual void TestWeightingWorks()
        {
            WeightedRVFDataset <string, string> dataset = new WeightedRVFDataset <string, string>();
            RVFDatum <string, string>           datum1  = NewRVFDatum(null, "a", "b", "a");

            dataset.Add(datum1, 42.0f);
            RVFDatum <string, string> datum2 = NewRVFDatum(null, "a", "b", "a");

            dataset.Add(datum2, 7.3f);
            NUnit.Framework.Assert.AreEqual(42.0f, dataset.GetWeights()[0], 1e-10);
            NUnit.Framework.Assert.AreEqual(7.3f, dataset.GetWeights()[1], 1e-10);
        }