Пример #1
0
        public void ToString_SingleItemListInput_ReturnsString()
        {
            //arrange
            List <String> inputs = new List <string>()
            {
                "item1"
            };
            IOutput output = new ListOutput(inputs);

            //act
            string result = output.ToString();

            //assert
            Assert.NotNull(output);
            Assert.NotNull(result);
            Assert.Equal("item1", result);
        }
Пример #2
0
        public void ToString_MultipleItemListInput_ReturnsDelimitedString()
        {
            //arrange
            List <String> inputs = new List <string>()
            {
                "item1", "item2", "item3"
            };
            IOutput output = new ListOutput(inputs);

            //act
            string result = output.ToString();

            //assert
            Assert.NotNull(output);
            Assert.NotNull(result);
            Assert.Equal("item1|item2|item3", result);
        }