27 references to TryLoadTaskBodyAndExpectSuccess
Microsoft.Build.Tasks.UnitTests (27)
RoslynCodeTaskFactory_Tests.cs (27)
223TryLoadTaskBodyAndExpectSuccess( 244TryLoadTaskBodyAndExpectSuccess( 260TryLoadTaskBodyAndExpectSuccess( 270TryLoadTaskBodyAndExpectSuccess("<Code Language=\"CS\">code</Code>", expectedCodeLanguage: "CS"); 271TryLoadTaskBodyAndExpectSuccess("<Code Language=\"cs\">code</Code>", expectedCodeLanguage: "CS"); 272TryLoadTaskBodyAndExpectSuccess("<Code Language=\"csharp\">code</Code>", expectedCodeLanguage: "CS"); 273TryLoadTaskBodyAndExpectSuccess("<Code Language=\"c#\">code</Code>", expectedCodeLanguage: "CS"); 275TryLoadTaskBodyAndExpectSuccess("<Code Language=\"VB\">code</Code>", expectedCodeLanguage: "VB"); 276TryLoadTaskBodyAndExpectSuccess("<Code Language=\"vb\">code</Code>", expectedCodeLanguage: "VB"); 277TryLoadTaskBodyAndExpectSuccess("<Code Language=\"visualbasic\">code</Code>", expectedCodeLanguage: "VB"); 278TryLoadTaskBodyAndExpectSuccess("<Code Language=\"ViSuAl BaSic\">code</Code>", expectedCodeLanguage: "VB"); 281TryLoadTaskBodyAndExpectSuccess("<Code>code</Code>", expectedCodeLanguage: "CS"); 289TryLoadTaskBodyAndExpectSuccess($"<Code Type=\"{codeType}\">code</Code>", expectedCodeType: codeType); 297TryLoadTaskBodyAndExpectSuccess($"<Code Source=\"{file.Path}\"/>", expectedCodeType: RoslynCodeTaskFactoryCodeType.Class); 301TryLoadTaskBodyAndExpectSuccess($"<Code Source=\"{file.Path}\" Type=\"{codeType}\">code</Code>", expectedCodeType: codeType); 324TryLoadTaskBodyAndExpectSuccess( 336TryLoadTaskBodyAndExpectSuccess(taskBody: $"<Code>{fragment}</Code>", verifySource: true); 353TryLoadTaskBodyAndExpectSuccess( 365TryLoadTaskBodyAndExpectSuccess( 393TryLoadTaskBodyAndExpectSuccess( 410TryLoadTaskBodyAndExpectSuccess( 426TryLoadTaskBodyAndExpectSuccess( 487TryLoadTaskBodyAndExpectSuccess("<!-- Comment --><Code>code</Code>"); 488TryLoadTaskBodyAndExpectSuccess(" <Code>code</Code>"); 560TryLoadTaskBodyAndExpectSuccess( 580TryLoadTaskBodyAndExpectSuccess( 602TryLoadTaskBodyAndExpectSuccess(