示例#1
0
        public void ConvertStringToStream_EmptyStringReturnsNullStream_Test()
        {
            //Arrange
            var web  = new Web.Web();
            var text = string.Empty;

            //Act
            web.ConvertStringToStream(text);

            //Assert
            Assert.AreEqual(null, web.Stream);
        }
示例#2
0
        public void ConvertStringToStream_StringNotEmptyReturnsStream_Test()
        {
            //Arrange
            var web      = new Web.Web();
            var testText = "Test text";

            //Act
            web.ConvertStringToStream(testText);

            //Assert
            Assert.AreNotEqual(null, web.Stream);
        }