// // Licensed under the MIT License. See LICENSE file in the project root for full license information. // namespace MUnique.OpenMU.AttributeSystem.Tests; /// /// Tests for the . /// [TestFixture] public class ConstValueAttributeTests { /// /// Tests if the value of the attribute is as defined in the constructor. /// [Test] public void ValueAsDefined() { const int constantValue = 999; var element = new ConstValueAttribute(constantValue, new AttributeDefinition()); Assert.That(element.Value, Is.EqualTo(constantValue)); } /// /// Tests if the is . /// [Test] public void AggregateTypeIsRaw() { var element = new ConstValueAttribute(999, new AttributeDefinition()); Assert.That(element.AggregateType, Is.EqualTo(AggregateType.AddRaw)); } }