public void WSpinButton() { var hh = new FakeHtmlHelper<Foo>(); hh.ViewData.Model = new Foo { Price = 10 }; var html = hh.WSpinButton("Nome"); Assert.AreEqual("<input class=\"wspinbutton\" id=\"Nome\" name=\"Nome\" type=\"text\" value=\"\" />", html.ToHtmlString()); html = hh.WSpinButton("Nome", "Valor"); Assert.AreEqual("<input class=\"wspinbutton\" id=\"Nome\" name=\"Nome\" type=\"text\" value=\"Valor\" />", html.ToHtmlString()); html = hh.WSpinButtonFor(m => m.Price); Assert.AreEqual("<input class=\"wspinbutton\" id=\"Price\" name=\"Price\" type=\"text\" value=\"10\" />", html.ToHtmlString()); html = hh.WSpinButtonFor(m => m.Price, new { @class = "testClass1 testClass2" }); Assert.AreEqual("<input class=\"testClass1 testClass2 wspinbutton\" id=\"Price\" name=\"Price\" type=\"text\" value=\"10\" />", html.ToHtmlString()); }