Beispiel #1
0
        public void TestToString1Param()
        {
            TFSNode node = new TFSNode
            {
                FieldName = "FieldName",
            };
            String list = "";

            foreach (var s in node.DefaultOption)
            {
                list += $"{s}, ";
            }
            Assert.AreEqual(node.ToString(), $"Field=FieldName, LabelName=, " +
                            $"DefaultText=, DefaultOption=");
        }
Beispiel #2
0
        public void TestToString()
        {
            TFSNode node = new TFSNode
            {
                FieldName     = "FieldName",
                LabelName     = "LabelName",
                DefaultText   = "DefaultText",
                DefaultOption = new List <String> {
                    "Option1", "Option2", "Option3"
                }
            };
            String list = "";

            foreach (var s in node.DefaultOption)
            {
                list += $"{s}, ";
            }
            Assert.AreEqual(node.ToString(), $"Field=FieldName, LabelName=LabelName, " +
                            $"DefaultText=DefaultText, DefaultOption=Option1, Option2, Option3, ");
        }