コード例 #1
0
        public void ToString_Method()
        {
            var widget = new MockHtmlWidget();

            Assert.Equal(MockHtmlWidget.Contents, widget.ToString());
            Assert.Equal(widget.ToHtmlString(), widget.ToString());
        }
 public void Render_Method()
 {
   var widget = new MockHtmlWidget();
   Assert.True(ReferenceEquals(widget.Render(), widget));
 }
        public void Render_Method()
        {
            var widget = new MockHtmlWidget();

            Assert.True(ReferenceEquals(widget.Render(), widget));
        }
コード例 #4
0
 public void ToString_Method()
 {
   var widget = new MockHtmlWidget();
   Assert.Equal(MockHtmlWidget.Contents, widget.ToString());
   Assert.Equal(widget.ToHtmlString(), widget.ToString());
 }