Exemplo n.º 1
0
        public void SimpleBootstrapHelperProducesCorrectHtmlForInput()
        {
            // Given
            SimpleBootstrapHelper helper = new SimpleBootstrapHelper();

            // When
            string input = helper.Input("input-name", "My Input").ToString().Replace("\r\n", "\n");

            // Then
            Assert.AreEqual(@"
<label for=""input-name"" class=""control-label"">My Input</label>
<input type=""text"" name=""input-name"" class=""form-control"">".Replace("\r\n", "\n"), input);
        }
        public void SimpleBootstrapHelperProducesCorrectHtmlForInput()
        {
            // Given
            SimpleBootstrapHelper helper = new SimpleBootstrapHelper();

            // When
            string input = helper.Input("input-name", "My Input").ToString().Replace("\r\n", "\n");

            // Then
            Assert.AreEqual(@"
<label for=""input-name"" class=""control-label"">My Input</label>
<input type=""text"" name=""input-name"" class=""form-control"">".Replace("\r\n", "\n"), input);
        }