Пример #1
0
        public void ItUsesTheTextToCreateThePromptSelectionInfo()
        {
            var emptyPrompt = new EmptyPrompt("Name", "Label");

            emptyPrompt.Text = "Text";

            var selectionInfo = emptyPrompt.ToSelectionInfo();

            Assert.AreEqual(emptyPrompt.Text, selectionInfo.Selections.Single().Value);
            Assert.AreEqual(emptyPrompt.Name, selectionInfo.PromptName);
        }