File: AttributeTests.cs
Web Access
Project: src\test\Libraries\Microsoft.Extensions.Compliance.Testing.Tests\Microsoft.Extensions.Compliance.Testing.Tests.csproj (Microsoft.Extensions.Compliance.Testing.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.Extensions.Compliance.Classification;
using Xunit;
 
namespace Microsoft.Extensions.Compliance.Testing.Tests;
 
public static class AttributeTests
{
    [Fact]
    public static void Basic()
    {
        DataClassificationAttribute a;
 
        a = new PrivateDataAttribute();
        Assert.Equal(FakeTaxonomy.PrivateData, a.Classification);
 
        a = new PublicDataAttribute();
        Assert.Equal(FakeTaxonomy.PublicData, a.Classification);
    }
}