Ejemplo n.º 1
0
        public void TestOnRequestBugReport()
        {
            //Arrange
            //This will subscribe our local method to the RequestBugReport event
            CurrentDynamoModel.RequestBugReport += CurrentDynamoModel_RequestBugReport;

            //Act
            CurrentDynamoModel.OnRequestBugReport();

            //Assert
            CurrentDynamoModel.RequestBugReport -= CurrentDynamoModel_RequestBugReport;
            //This will validate that the local handler was executed and set the flag in true
            Assert.IsTrue(requestBugReport);
        }