This repository has been archived on 2025-09-07 . You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
25 lines
761 B
C#
25 lines
761 B
C#
using System.IO;
|
||||
using FluentAssertions;
|
||||
using Microsoft.DotNet.Tools.Test.Utilities;
|
||||
using Xunit;
|
||||
|
||||
namespace EndToEnd.Tests
|
||||
{
|
||||
public class TelemetryOptOutDefault : TestBase
|
||||
{
|
||||
[Fact]
|
||||
public void TelemetryOptOutDefaultAttribute()
|
||||
{
|
||||
var versionCommand = new DotnetCommand()
|
||||
.ExecuteWithCapturedOutput("--version");
|
||||
|
||||
var sdkVersion = versionCommand.StdOut.Trim();
|
||||
|
||||
var dotnetdir = Path.Combine(Path.GetDirectoryName(RepoDirectoriesProvider.DotnetUnderTest), "sdk", sdkVersion);
|
||||
|
||||
var result = AssemblyInfo.Get(Path.Combine(dotnetdir, "dotnet.dll"), "AssemblyMetadataAttribute");
|
||||
result.Should().Contain("TelemetryOptOutDefault:False");
|
||||
}
|
||||
}
|
||||
}
|