Ejemplo n.º 1
0
        public void CloneTest()
        {
            string      projectFile = @"C:\Users\Test\file.wcodeproj";
            string      projectName = "Project";
            IProject    project     = new Project(projectFile, projectName);
            string      name        = "Debug Config";
            BuildConfig target      = new BuildConfig(project, name);

            target.Steps.Add(new InternalBuildStep(project, 1, StepType.All, null, null));
            target.Steps.Add(new InternalBuildStep(project, 0, StepType.Listing, null, null));

            IBuildConfig actual = (IBuildConfig)target.Clone();

            Assert.AreEqual(target, actual);
        }