Add a prototype telemetry setting test.
This commit is contained in:
parent
036f883b74
commit
a3d39216d2
2 changed files with 101 additions and 0 deletions
23
test/EndToEnd/OfficialBuilderTests.cs
Normal file
23
test/EndToEnd/OfficialBuilderTests.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue