Lines Matching refs:usingTask
207 ProjectUsingTaskElement usingTask = GetUsingTaskAssemblyFile(); in ReadBasicUsingTaskAssemblyFile()
209 Assert.Equal("t1", usingTask.TaskName); in ReadBasicUsingTaskAssemblyFile()
210 Assert.Equal("af", usingTask.AssemblyFile); in ReadBasicUsingTaskAssemblyFile()
211 Assert.Equal(String.Empty, usingTask.AssemblyName); in ReadBasicUsingTaskAssemblyFile()
212 Assert.Equal(String.Empty, usingTask.Condition); in ReadBasicUsingTaskAssemblyFile()
221 ProjectUsingTaskElement usingTask = GetUsingTaskAssemblyName(); in ReadBasicUsingTaskAssemblyName()
223 Assert.Equal("t2", usingTask.TaskName); in ReadBasicUsingTaskAssemblyName()
224 Assert.Equal(String.Empty, usingTask.AssemblyFile); in ReadBasicUsingTaskAssemblyName()
225 Assert.Equal("an", usingTask.AssemblyName); in ReadBasicUsingTaskAssemblyName()
226 Assert.Equal("c", usingTask.Condition); in ReadBasicUsingTaskAssemblyName()
235 ProjectUsingTaskElement usingTask = GetUsingTaskFactoryRuntimeAndPlatform(); in ReadBasicUsingTaskFactoryRuntimeAndPlatform()
237 Assert.Equal("t2", usingTask.TaskName); in ReadBasicUsingTaskFactoryRuntimeAndPlatform()
238 Assert.Equal(String.Empty, usingTask.AssemblyFile); in ReadBasicUsingTaskFactoryRuntimeAndPlatform()
239 Assert.Equal("an", usingTask.AssemblyName); in ReadBasicUsingTaskFactoryRuntimeAndPlatform()
240 Assert.Equal("c", usingTask.Condition); in ReadBasicUsingTaskFactoryRuntimeAndPlatform()
241 Assert.Equal("AssemblyFactory", usingTask.TaskFactory); in ReadBasicUsingTaskFactoryRuntimeAndPlatform()
250 ProjectUsingTaskElement usingTask = GetUsingTaskFactoryRuntimeAndPlatform(); in RemoveUsingTaskFactoryRuntimeAndPlatform()
253 VerifyAttributesRemoved(usingTask, value); in RemoveUsingTaskFactoryRuntimeAndPlatform()
255 usingTask = GetUsingTaskFactoryRuntimeAndPlatform(); in RemoveUsingTaskFactoryRuntimeAndPlatform()
257 VerifyAttributesRemoved(usingTask, value); in RemoveUsingTaskFactoryRuntimeAndPlatform()
266 ProjectUsingTaskElement usingTask = GetUsingTaskAssemblyFile(); in SetUsingTaskAssemblyFileOnUsingTaskAssemblyFile()
267 Helpers.ClearDirtyFlag(usingTask.ContainingProject); in SetUsingTaskAssemblyFileOnUsingTaskAssemblyFile()
269 usingTask.AssemblyFile = "afb"; in SetUsingTaskAssemblyFileOnUsingTaskAssemblyFile()
270 Assert.Equal("afb", usingTask.AssemblyFile); in SetUsingTaskAssemblyFileOnUsingTaskAssemblyFile()
271 Assert.Equal(true, usingTask.ContainingProject.HasUnsavedChanges); in SetUsingTaskAssemblyFileOnUsingTaskAssemblyFile()
280 ProjectUsingTaskElement usingTask = GetUsingTaskAssemblyName(); in SetUsingTaskAssemblyNameOnUsingTaskAssemblyName()
281 Helpers.ClearDirtyFlag(usingTask.ContainingProject); in SetUsingTaskAssemblyNameOnUsingTaskAssemblyName()
283 usingTask.AssemblyName = "anb"; in SetUsingTaskAssemblyNameOnUsingTaskAssemblyName()
284 Assert.Equal("anb", usingTask.AssemblyName); in SetUsingTaskAssemblyNameOnUsingTaskAssemblyName()
285 Assert.Equal(true, usingTask.ContainingProject.HasUnsavedChanges); in SetUsingTaskAssemblyNameOnUsingTaskAssemblyName()
296 ProjectUsingTaskElement usingTask = GetUsingTaskAssemblyName(); in SetUsingTaskAssemblyFileOnUsingTaskAssemblyName()
298 usingTask.AssemblyFile = "afb"; in SetUsingTaskAssemblyFileOnUsingTaskAssemblyName()
310 ProjectUsingTaskElement usingTask = GetUsingTaskAssemblyFile(); in SetUsingTaskAssemblyNameOnUsingTaskAssemblyFile()
312 usingTask.AssemblyName = "anb"; in SetUsingTaskAssemblyNameOnUsingTaskAssemblyFile()
323 ProjectUsingTaskElement usingTask = project.AddUsingTask("t", "af", null); in SetTaskName()
324 Helpers.ClearDirtyFlag(usingTask.ContainingProject); in SetTaskName()
326 usingTask.TaskName = "tt"; in SetTaskName()
327 Assert.Equal("tt", usingTask.TaskName); in SetTaskName()
328 Assert.Equal(true, usingTask.ContainingProject.HasUnsavedChanges); in SetTaskName()
338 ProjectUsingTaskElement usingTask = project.AddUsingTask("t", "af", null); in SetCondition()
339 Helpers.ClearDirtyFlag(usingTask.ContainingProject); in SetCondition()
341 usingTask.Condition = "c"; in SetCondition()
342 Assert.Equal("c", usingTask.Condition); in SetCondition()
343 Assert.Equal(true, usingTask.ContainingProject.HasUnsavedChanges); in SetCondition()
353 ProjectUsingTaskElement usingTask = project.AddUsingTask("t", "af", null); in SetTaskFactory()
354 Helpers.ClearDirtyFlag(usingTask.ContainingProject); in SetTaskFactory()
356 usingTask.TaskFactory = "AssemblyFactory"; in SetTaskFactory()
357 Assert.Equal("AssemblyFactory", usingTask.TaskFactory); in SetTaskFactory()
358 Assert.Equal(true, usingTask.ContainingProject.HasUnsavedChanges); in SetTaskFactory()
443 … ProjectUsingTaskElement usingTask = (ProjectUsingTaskElement)Helpers.GetFirst(project.Children); in WorksWithChildren()
444 Assert.NotNull(usingTask); in WorksWithChildren()
445 Assert.Equal(2, usingTask.Count); in WorksWithChildren()
467 … ProjectUsingTaskElement usingTask = (ProjectUsingTaskElement)Helpers.GetFirst(project.Children); in ExceptionWhenNoTaskFactoryAndHavePG()
489 … ProjectUsingTaskElement usingTask = (ProjectUsingTaskElement)Helpers.GetFirst(project.Children); in ExceptionWhenNoTaskFactoryAndHaveTask()
506 … ProjectUsingTaskElement usingTask = (ProjectUsingTaskElement)Helpers.GetFirst(project.Children); in GetUsingTaskFactoryRuntimeAndPlatform()
507 return usingTask; in GetUsingTaskFactoryRuntimeAndPlatform()
523 … ProjectUsingTaskElement usingTask = (ProjectUsingTaskElement)Helpers.GetFirst(project.Children); in GetUsingTaskAssemblyFile()
524 return usingTask; in GetUsingTaskAssemblyFile()
539 … ProjectUsingTaskElement usingTask = (ProjectUsingTaskElement)Helpers.GetFirst(project.Children); in GetUsingTaskAssemblyName()
540 return usingTask; in GetUsingTaskAssemblyName()
546 private static void VerifyAttributesRemoved(ProjectUsingTaskElement usingTask, string value) in VerifyAttributesRemoved() argument
548 Assert.True(usingTask.ContainingProject.RawXml.Contains("TaskFactory")); in VerifyAttributesRemoved()
549 usingTask.TaskFactory = value; in VerifyAttributesRemoved()
550 Assert.False(usingTask.ContainingProject.RawXml.Contains("TaskFactory")); in VerifyAttributesRemoved()