Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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]);
        }