Exemple #1
0
 public void SetUp()
 {
     _shimObject    = ShimsContext.Create();
     eventArgs      = new EventArgs();
     _toolLibrary   = new ToolLibrary();
     _privateObject = new MSTest::PrivateObject(_toolLibrary);
 }
        public void RenderTdWithPlusArrowImage_GetRenderedHtml()
        {
            //Arrange:
            var stringWriter = new StringWriter();
            var writer       = new HtmlTextWriter(stringWriter);

            var slider        = new Slider();
            var privateObject = new MSTest::PrivateObject(slider);

            //Act:
            privateObject.Invoke("RenderTdWithPlusArrowImage", writer);
            var result = stringWriter.ToString();

            //Assert:
            Assert.IsFalse(string.IsNullOrWhiteSpace(result));
            Assert.AreEqual(HtmlDecode(TdWithPlusArrowRenderedHtml), HtmlDecode(result));
        }
 public void SetUp()
 {
     _toolbar       = new Toolbar();
     _privateObject = new MSTest::PrivateObject(_toolbar);
 }
 public void SetUp()
 {
     _dateOperation = new DateOperation();
     _privateObjcet = new MSTest::PrivateObject(_dateOperation);
 }
Exemple #5
0
 public void SetUp()
 {
     _htmlParser    = new HtmlParser();
     _privateObject = new MSTest::PrivateObject(_htmlParser);
 }
 public void SetUp()
 {
     _shimObject        = ShimsContext.Create();
     _toolbarsContainer = new ToolbarsContainer();
     _privateObj        = new MSTest::PrivateObject(_toolbarsContainer);
 }
 public void SetUp()
 {
     _context       = ShimsContext.Create();
     _toolFlash     = new ToolFlash();
     _privateObject = new MSTest::PrivateObject(_toolFlash);
 }
 public void SetUp()
 {
     _slider        = new Slider();
     _PrivateObject = new MSTest::PrivateObject(_slider);
 }