Exemplo n.º 1
0
        public void TestGetLabelID()
        {
            string         label    = "R3";
            LabelContainer instance = new LabelContainer();

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

            Assert.AreEqual(expectedValue, instance.GetLabelID("R3"));
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }