2022-10-11 20:33:56 +00:00
|
|
|
|
using System.IO;
|
|
|
|
|
using FluentAssertions;
|
|
|
|
|
using Microsoft.DotNet.Tools.Test.Utilities;
|
|
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
|
|
namespace EndToEnd.Tests
|
|
|
|
|
{
|
|
|
|
|
public class TelemetryOptOutDefault : TestBase
|
|
|
|
|
{
|
|
|
|
|
[Fact]
|
|
|
|
|
public void TelemetryOptOutDefaultAttribute()
|
|
|
|
|
{
|
2022-10-24 22:48:03 +00:00
|
|
|
|
var dotnetdir = Path.Combine(Path.GetDirectoryName(RepoDirectoriesProvider.DotnetUnderTest), "sdk", "7.0.100");
|
2022-10-11 20:33:56 +00:00
|
|
|
|
var result = AssemblyInfo.Get(Path.Combine(dotnetdir, "dotnet.dll"), "AssemblyMetadataAttribute");
|
|
|
|
|
result.Should().Contain("TelemetryOptOutDefault:False");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|