Пример #1
0
 public void Page_LoadTest()
 {
     _Default target = new _Default(); // TODO: Initialize to an appropriate value
     object sender = null; // TODO: Initialize to an appropriate value
     EventArgs e = null; // TODO: Initialize to an appropriate value
     target.Page_Load(sender, e);
     //Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Пример #2
0
        public void Page_Load()
        {
            var controller = new Mock <IDefaultController>();

            _Default page = new _Default();

            page.InitController(controller.Object);

            page.Page_Load(null, EventArgs.Empty);

            controller.Verify(x => x.OnLoad());
        }
Пример #3
0
        public void defaultPageLoad()
        {
            _Default x = new _Default();

            Assert.AreEqual(x.Page_Load(new object(), new EventArgs()), true);
        }