diff --git a/src/FlUnit/FlUnit.csproj b/src/FlUnit/FlUnit.csproj index 8a2f270..bd63340 100644 --- a/src/FlUnit/FlUnit.csproj +++ b/src/FlUnit/FlUnit.csproj @@ -65,7 +65,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/FlUnit/Trait.cs b/src/FlUnit/Trait.cs deleted file mode 100644 index 566f2ae..0000000 --- a/src/FlUnit/Trait.cs +++ /dev/null @@ -1,27 +0,0 @@ -namespace FlUnit -{ - /// - /// Representation of a test trait. - /// - public sealed class Trait : ITrait - { - /// - /// Initializes a new instance of the class. - /// - /// The name of the trait. - public Trait(string name) => Name = name; - - /// - /// Initializes a new instance of the class. - /// - /// The name of the trait. - /// The value of the trait. - public Trait(string name, string value) => (Name, Value) = (name, value); - - /// - public string Name { get; } - - /// - public string Value { get; } - } -} diff --git a/src/FlUnit/TraitAttribute.cs b/src/FlUnit/TraitAttribute.cs deleted file mode 100644 index 5262085..0000000 --- a/src/FlUnit/TraitAttribute.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Reflection; - -namespace FlUnit -{ - /// - /// Attribute used to decorate a test, test class, or assembly with arbitrary name/value pairs ("traits"). - /// - [AttributeUsage(AttributeTargets.Property | AttributeTargets.Class | AttributeTargets.Assembly, AllowMultiple = true)] - public sealed class TraitAttribute : Attribute, ITraitProvider - { - private readonly ITrait trait; - - /// - /// Creates a new instance of the class. - /// - /// The trait name. - public TraitAttribute(string name) => trait = new Trait(name); - - /// - /// Creates a new instance of the class. - /// - /// The trait name. - /// The trait value. - public TraitAttribute(string name, string value) => trait = new Trait(name, value); - - /// - public ITrait GetTrait(PropertyInfo testProperty) => trait; - } -}