public void CategoryAttribute_ConstructorImplementationsCheck() { var implementations = StateImplementations.GetValues().ToArray(); var categoryAttribute = new CategoryAttribute(Value, implementations); Assert.AreEqual(Value, categoryAttribute.Value); Assert.AreEqual(implementations.Length, categoryAttribute.Implementations.Count); }
public void CategoryAttribute_Constructor() { var categoryAttribute = new CategoryAttribute(Value); Assert.AreEqual(Value, categoryAttribute.Value); Assert.IsTrue(categoryAttribute.Implementations.Count > 0); Assert.AreEqual(StateImplementations.Generic, categoryAttribute.Implementations[0]); }