Exemple #1
0
        public void TestGetLabelID()
        {
            string         label    = "R3";
            LabelContainer instance = new LabelContainer();

            instance.Add(label);
            int expectedValue = 2;

            Assert.AreEqual(expectedValue, instance.GetLabelID("R3"));
        }
Exemple #2
0
        public void TestGetSize()
        {
            string         label    = "R3";
            LabelContainer instance = new LabelContainer();

            instance.Add(label);
            int expectedValue = 3;
            int result        = instance.Count;

            Assert.AreEqual(expectedValue, result);
        }
Exemple #3
0
        public void TestGetLabel()
        {
            string         label    = "R3";
            LabelContainer instance = new LabelContainer();

            instance.Add(label);
            int    index  = 2;
            string result = instance.GetLabel(index);

            Assert.AreEqual(label, result);
        }