Exemplo n.º 1
0
        public void MapCodesAsString_Many()
        {
            List <ushort> mapCodes = MakeUShortList(124, 120, 122, 123, 121, 0,
                                                    5, 6, 8, 44, 43, 42, 40);

            Assert.AreEqual("0, 5, 6, 8, 40, 42-44, 120-124", ManagementAreas.MapCodesToString(mapCodes));
        }
Exemplo n.º 2
0
        public void MapCodesAsString_OneRange()
        {
            List <ushort> mapCodes = MakeUShortList(99, 101, 100);

            Assert.AreEqual("99-101", ManagementAreas.MapCodesToString(mapCodes));
        }
Exemplo n.º 3
0
        public void MapCodesAsString_TwoConsecutive()
        {
            List <ushort> mapCodes = MakeUShortList(78, 79);

            Assert.AreEqual("78, 79", ManagementAreas.MapCodesToString(mapCodes));
        }
Exemplo n.º 4
0
        public void MapCodesAsString_TwoSingles()
        {
            List <ushort> mapCodes = MakeUShortList(123, 8);

            Assert.AreEqual("8, 123", ManagementAreas.MapCodesToString(mapCodes));
        }
Exemplo n.º 5
0
        public void MapCodesAsString_One()
        {
            List <ushort> mapCodes = MakeUShortList(123);

            Assert.AreEqual("123", ManagementAreas.MapCodesToString(mapCodes));
        }
Exemplo n.º 6
0
 public void MapCodesAsString_Null()
 {
     Assert.AreEqual("", ManagementAreas.MapCodesToString(null));
 }