Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private static string GetEntryPointSourceCode(string language, string? rootNames
//------------------------------------------------------------------------------

[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
internal sealed class TestingPlatformEntryPoint
internal sealed class MicrosoftTestingPlatformEntryPoint
{
public static async global::System.Threading.Tasks.Task<int> Main(string[] args)
{
Expand All @@ -130,7 +130,7 @@ internal sealed class TestingPlatformEntryPoint
namespace {{rootNamespace}}
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
internal sealed class TestingPlatformEntryPoint
internal sealed class MicrosoftTestingPlatformEntryPoint
{
public static async global::System.Threading.Tasks.Task<int> Main(string[] args)
{
Expand Down Expand Up @@ -158,7 +158,7 @@ internal sealed class TestingPlatformEntryPoint
'------------------------------------------------------------------------------

<System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage>
Module TestingPlatformEntryPoint
Module MicrosoftTestingPlatformEntryPoint

Function Main(args As String()) As Integer
Return MainAsync(args).GetAwaiter().GetResult()
Expand All @@ -185,7 +185,7 @@ End Module
// </auto-generated>
//------------------------------------------------------------------------------

module TestingPlatformEntryPoint =
module MicrosoftTestingPlatformEntryPoint =

[<System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage>]
[<EntryPoint>]
Expand All @@ -208,7 +208,7 @@ End Module

namespace {{rootNamespace}}

module TestingPlatformEntryPoint =
module MicrosoftTestingPlatformEntryPoint =

[<System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage>]
[<EntryPoint>]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

<!-- Generate the entry point source using the user extensions informations -->
<PropertyGroup>
<_TestingPlatformEntryPointSourceName>TestPlatformEntryPoint$(DefaultLanguageSourceExtension)</_TestingPlatformEntryPointSourceName>
<_TestingPlatformEntryPointSourceName>MicrosoftTestingPlatformEntryPoint$(DefaultLanguageSourceExtension)</_TestingPlatformEntryPointSourceName>
<_TestingPlatformEntryPointSourcePath>$([System.IO.Path]::Combine($(IntermediateOutputPath),$(_TestingPlatformEntryPointSourceName)))</_TestingPlatformEntryPointSourcePath>
<_TestingPlatformEntryPointSourcePath>$([MSBuild]::NormalizePath($(MSBuildProjectDirectory), $(_TestingPlatformEntryPointSourcePath)))</_TestingPlatformEntryPointSourcePath>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task GenerateCSharpEntryPointAndVerifyTheCacheUsage(string tfm, Bui
namespace MSBuildTests
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
internal sealed class TestingPlatformEntryPoint
internal sealed class MicrosoftTestingPlatformEntryPoint
{
public static async global::System.Threading.Tasks.Task<int> Main(string[] args)
{
Expand All @@ -69,7 +69,7 @@ public async Task GenerateVBEntryPointAndVerifyTheCacheUsage(string tfm, BuildCo
'------------------------------------------------------------------------------

<System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage>
Module TestingPlatformEntryPoint
Module MicrosoftTestingPlatformEntryPoint

Function Main(args As String()) As Integer
Return MainAsync(args).GetAwaiter().GetResult()
Expand Down Expand Up @@ -98,7 +98,7 @@ public async Task GenerateFSharpEntryPointAndVerifyTheCacheUsage(string tfm, Bui

namespace MSBuildTests

module TestingPlatformEntryPoint =
module MicrosoftTestingPlatformEntryPoint =

[<System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage>]
[<EntryPoint>]
Expand Down Expand Up @@ -135,7 +135,7 @@ private async Task GenerateAndVerifyLanguageSpecificEntryPointAsync(string asset
SL.Target coreCompile = binLog.FindChildrenRecursive<SL.Target>().Single(t => t.Name == "CoreCompile" && t.Children.Count > 0);
SL.Task csc = coreCompile.FindChildrenRecursive<SL.Task>(t => t.Name == cscProcessName).Single();
SL.Parameter sources = csc.FindChildrenRecursive<SL.Parameter>(t => t.Name == "Sources").Single();
string? sourceFilePathInObj = sources.FindChildrenRecursive<SL.Item>(i => i.Text.EndsWith($"TestPlatformEntryPoint.{languageFileExtension}", StringComparison.OrdinalIgnoreCase)).SingleOrDefault()?.Text;
string? sourceFilePathInObj = sources.FindChildrenRecursive<SL.Item>(i => i.Text.EndsWith($"MicrosoftTestingPlatformEntryPoint.{languageFileExtension}", StringComparison.OrdinalIgnoreCase)).SingleOrDefault()?.Text;
Assert.IsNotNull(sourceFilePathInObj);

File.Delete(buildResult.BinlogPath!);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void Verify_Correct_Registration_Order_For_WellKnown_Extensions()
namespace SomeNamespace
{
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
internal sealed class TestingPlatformEntryPoint
internal sealed class MicrosoftTestingPlatformEntryPoint
{
public static async global::System.Threading.Tasks.Task<int> Main(string[] args)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public void AppendStackFrameFormatsStackTraceLineCorrectly()

// Code with line when we have symbols
[DataRow(
" at TestingPlatformEntryPoint.Main(String[]) in /_/TUnit.TestProject/obj/Release/net8.0/osx-x64/TestPlatformEntryPoint.cs:line 16",
" at TestingPlatformEntryPoint.Main(String[]) in /_/TUnit.TestProject/obj/Release/net8.0/osx-x64/TestPlatformEntryPoint.cs:16")]
" at MicrosoftTestingPlatformEntryPoint.Main(String[]) in /_/TUnit.TestProject/obj/Release/net8.0/osx-x64/MicrosoftTestingPlatformEntryPoint.cs:line 16",
" at MicrosoftTestingPlatformEntryPoint.Main(String[]) in /_/TUnit.TestProject/obj/Release/net8.0/osx-x64/MicrosoftTestingPlatformEntryPoint.cs:16")]
// code without line when we don't have symbols
[DataRow(
" at TestingPlatformEntryPoint.<Main>(String[])",
Expand Down