public void TestValidValue(bool r)
        {
            var          ap            = new DefaultValueAttributeParser();
            const string attIdentifier = "default";

            var e = ap.ParsedAttribute(attIdentifier,
                                       null,
                                       new NParsedAttributeAtomic(new ParsedBool(r)));

            Assert.IsInstanceOf(typeof(DefaultValueAttribute), e);
            var pa = (DefaultValueAttribute)e;

            Assert.AreEqual(r, pa.Value);
        }
        public void TestNotColonValue(NParsedAttributeValue v)
        {
            var          ap            = new DefaultValueAttributeParser();
            const string attIdentifier = "default";

            var e = Assert.Catch(() => {
                ap.ParsedAttribute(attIdentifier,
                                   null,
                                   v);
            });

            Assert.IsInstanceOf(typeof(InvalidAttributeValueException), e);
            StringAssert.AreEqualIgnoringCase(
                string.Format(InvalidAttributeValueException.ATOMIC_ONLY, attIdentifier),
                e.Message
                );
        }
        public void TestNullParameter()
        {
            var          ap            = new DefaultValueAttributeParser();
            const string attIdentifier = "default";

            var e = Assert.Catch(() => {
                ap.ParsedAttribute(attIdentifier,
                                   new NParsedAttributeAtomic(new ParsedFloat()),
                                   new NParsedAttributeAtomic(new IdentifierExpression("software")));
            });

            Assert.IsInstanceOf(typeof(InvalidParameterAttributeException), e);
            StringAssert.AreEqualIgnoringCase(
                string.Format(InvalidParameterAttributeException.NO_PARAM, attIdentifier),
                e.Message
                );
        }
        public void TestNotBooleanValue()
        {
            var          ap            = new DefaultValueAttributeParser();
            const string attIdentifier = "default";

            var e = Assert.Catch(() => {
                ap.ParsedAttribute(attIdentifier,
                                   null,
                                   new NParsedAttributeAtomic(new ParsedFloat()));
            });

            Assert.IsInstanceOf(typeof(InvalidAttributeValueException), e);
            StringAssert.AreEqualIgnoringCase(
                string.Format(InvalidAttributeValueException.BOOL, attIdentifier),
                e.Message
                );
        }