public void TestNotIdentifierValue()
        {
            var          ap            = new ResolvedByAttributeParser();
            const string attIdentifier = "resolvedBy";

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

            Assert.IsInstanceOf(typeof(InvalidAttributeValueException), e);
            StringAssert.AreEqualIgnoringCase(
                string.Format(InvalidAttributeValueException.IDENTIFIER, attIdentifier),
                e.Message
                );
        }
        public void TestNotAtomicValue(NParsedAttributeValue v)
        {
            var          ap            = new ResolvedByAttributeParser();
            const string attIdentifier = "resolvedBy";

            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 TestNotColonParameter(NParsedAttributeValue v)
        {
            var          ap            = new ResolvedByAttributeParser();
            const string attIdentifier = "resolvedBy";

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

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