Example #1
0
        public void AddNewTargetSpecialCharacterName()
        {
            project.LoadXml(ProjectContentSeveralTargets);
            TargetCollection targets = project.Targets;

            targets.AddNewTarget("%24%40%3b%5c%25");
        }
Example #2
0
        public void AddNewTargetNullName()
        {
            project.LoadXml(ProjectContentSeveralTargets);
            TargetCollection targets = project.Targets;

            targets.AddNewTarget(null);
        }
Example #3
0
        public void AddNewTargetEmptyStringName()
        {
            project.LoadXml(ProjectContentSeveralTargets);
            TargetCollection targets = project.Targets;

            targets.AddNewTarget(String.Empty);
        }
Example #4
0
        public void AddNewTargetWhenNoOtherTargetsExist()
        {
            project.LoadXml(ProjectContentNoTargets);
            TargetCollection targets = project.Targets;

            targets.AddNewTarget("t");

            Assertion.AssertEquals(true, targets.Exists("t"));
            Assertion.AssertEquals(1, targets.Count);
        }
Example #5
0
        public void AddNewTargetWhenTargetOfSameNameAlreadyExists()
        {
            project.LoadXml(ProjectContentSeveralTargets);
            TargetCollection targets = project.Targets;

            targets.AddNewTarget("t1");

            Assertion.AssertEquals(true, targets.Exists("t1"));
            Assertion.AssertEquals(5, targets.Count);
        }
Example #6
0
        public void AddNewTargetSimple()
        {
            project.LoadXml(ProjectContentSeveralTargets);
            TargetCollection targets = project.Targets;

            targets.AddNewTarget("tNew");

            Assertion.AssertEquals(true, targets.Exists("tNew"));
            Assertion.AssertEquals(6, targets.Count);
        }