public void Write_Quoted_GivenEmptyTemplateCode_Ignores()
        {
            var sut = new RazorJSTemplateBuilder(this._templateCollection.Object, this._helperCollection.Object);

            sut.Write(String.Empty, true);

            this._templateCollection.Verify(t => t.Add(It.IsAny <string>()), Times.Never());
        }
        public void Write_Quoted_GivenWhiteSpaceTemplateCode_AddsToCollection()
        {
            string input = " ";

            var sut = new RazorJSTemplateBuilder(this._templateCollection.Object, this._helperCollection.Object);

            sut.Write(input, true);

            this._templateCollection.Verify(t => t.Add("_tmpl.push('" + input + "');"));
        }
        public void Write_GivenTextInput_AddsToCollection()
        {
            string input = "sdfsdfdf";

            var sut = new RazorJSTemplateBuilder(this._templateCollection.Object, this._helperCollection.Object);

            sut.Write(input);

            this._templateCollection.Verify(t => t.Add("_tmpl.push(" + input + ");"));
        }