public void EdmPropertyConstructor()
        {
            var e = new EdmPropertyConstructor("n1", new EdmStringConstant("qwerty"));

            Assert.AreEqual("n1", e.Name, "e.Name");
            Assert.AreEqual("qwerty", ((IEdmStringValue)e.Value).Value, ((IEdmStringValue)e.Value).Value);
            Assert.IsFalse(e.IsBad(), "e good");

            try
            {
                new EdmPropertyConstructor(null, new EdmStringConstant("qwerty"));
                Assert.Fail("exception expected");
            }
            catch (ArgumentNullException)
            {
            }

            try
            {
                new EdmPropertyConstructor("n1", null);
                Assert.Fail("exception expected");
            }
            catch (ArgumentNullException)
            {
            }

            var ee = new MutablePropertyConstructor();

            Assert.IsNull(ee.Name, "ee.Name");
            Assert.IsNull(ee.Value, "ee.Expression");
            Assert.IsTrue(ee.IsBad(), "Expression is bad.");
            Assert.AreEqual(2, ee.Errors().Count(), "Expression has errors");
        }
        public void EdmPropertyConstructor()
        {
            var e = new EdmPropertyConstructor("n1", new EdmStringConstant("qwerty"));
            Assert.AreEqual("n1", e.Name, "e.Name");
            Assert.AreEqual("qwerty", ((IEdmStringValue)e.Value).Value, ((IEdmStringValue)e.Value).Value);
            Assert.IsFalse(e.IsBad(), "e good");

            try
            {
                new EdmPropertyConstructor(null, new EdmStringConstant("qwerty"));
                Assert.Fail("exception expected");
            }
            catch (ArgumentNullException)
            {
            }

            try
            {
                new EdmPropertyConstructor("n1", null);
                Assert.Fail("exception expected");
            }
            catch (ArgumentNullException)
            {
            }

            var ee = new MutablePropertyConstructor();
            Assert.IsNull(ee.Name, "ee.Name");
            Assert.IsNull(ee.Value, "ee.Expression");
            Assert.IsTrue(ee.IsBad(), "Expression is bad.");
            Assert.AreEqual(2, ee.Errors().Count(), "Expression has errors");
        }