OnTargetFinished() public méthode

Dispatches a TargetFinished event to the build listeners for this Project.
public OnTargetFinished ( object sender, BuildEventArgs e ) : void
sender object The source of the event.
e BuildEventArgs A that contains the event data.
Résultat void
Exemple #1
0
        public void Test_OnTargetFinished() {
            MockBuildEventListener b = new MockBuildEventListener();

            XmlDocument doc = new XmlDocument();
            doc.LoadXml(FormatBuildFile("", ""));
            Project p = new Project(doc, Level.Info, 0);

            p.TargetFinished += new BuildEventHandler(b.TargetFinished);
            p.OnTargetFinished(this, new BuildEventArgs(p));

            Assert.IsTrue(b._targetFinished);
        }