Add a prototype telemetry setting test.

This commit is contained in:
Marc Paine 2022-09-22 15:24:11 -07:00
parent 036f883b74
commit a3d39216d2
2 changed files with 101 additions and 0 deletions

View file

@ -0,0 +1,23 @@
using System;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Xml.Linq;
using FluentAssertions;
using Microsoft.DotNet.TestFramework;
using Microsoft.DotNet.Tools.Test.Utilities;
using Xunit;
namespace EndToEnd.Tests
{
public class OfficialBuilderTests : TestBase
{
[Fact]
public void OfficialBuilderAtrribute()
{
var dotnetdir = Path.Combine(Path.GetDirectoryName(RepoDirectoriesProvider.DotnetUnderTest), "sdk", "7.0.100-dev");
var result = AssemblyInfo.Get(Path.Combine(dotnetdir, "dotnet.dll"), "AssemblyMetadataAttribute");
result.Should().Contain("OfficialBuilder:Microsoft");
}
}
}