コード例 #1
0
        public void Property_Value_Set()
        {
            FakeValue     fakeValue = new FakeValue();
            BasicProperty prop      = new BasicProperty();

            prop.Value = fakeValue;

            Assert.AreEqual(fakeValue, prop.Value);
            Assert.IsInstanceOfType(prop.Value, fakeValue.GetType());
        }
コード例 #2
0
        public void Property_Creation_ValidDefinitionAndValue()
        {
            BasicPropertyDefinition fakeDef = new BasicPropertyDefinition("fakeId", "fakeName");
            FakeValue     fakeValue         = new FakeValue();
            BasicProperty prop = new BasicProperty(fakeDef, fakeValue);

            Assert.AreEqual(fakeDef, prop.Definition);
            Assert.AreEqual(fakeValue, prop.Value);
            Assert.IsInstanceOfType(prop.Definition, fakeDef.GetType());
            Assert.IsInstanceOfType(prop.Value, fakeValue.GetType());
        }