Beispiel #1
0
        public void GetSelectionPropertiesName_Two()
        {
            var result = CodeParserBase.GetSelectionMemberName(new List <string> {
                "one", "two"
            });

            Assert.IsTrue(result.Equals("one and two"));
        }
Beispiel #2
0
        public void GetSelectionPropertiesName_Five()
        {
            var result = CodeParserBase.GetSelectionMemberName(new List <string> {
                "one", "two", "three", "four", "five"
            });

            Assert.IsTrue(result.Equals("one, two and 3 other members"));
        }
Beispiel #3
0
        public void GetSelectionPropertiesName_Empty()
        {
            var result = CodeParserBase.GetSelectionMemberName(new List <string>());

            Assert.IsTrue(string.IsNullOrEmpty(result));
        }