Beispiel #1
0
        public void GetScoreTest()
        {
            var master = new SortSet <int, int>();

            master.Add(10, 100);
            Assert.AreEqual(100, master.GetScore(10));
        }
Beispiel #2
0
        public void OverrideElement()
        {
            var master = new SortSet <int, int>();

            master.Add(10, 100);
            master.Add(10, 200);
            Assert.AreEqual(200, master.GetScore(10));
        }
Beispiel #3
0
        public void TestGetScoreThrowException()
        {
            var master = new SortSet <int, int>(0.25, 32);

            ExceptionAssert.Throws <KeyNotFoundException>(() =>
            {
                master.GetScore(123);
            });
        }