public void Field_OuterField_OnTheContent()
{
ContentTypeInstaller.InstallContentType(@"<?xml version='1.0' encoding='utf-8'?>
<ContentType name='OuterFieldTestContentType' parentType='GenericContent' handler='SenseNet.ContentRepository.GenericContent' xmlns='http://schemas.sensenet.com/SenseNet/ContentRepository/ContentTypeDefinition'>
<Fields>
<Field name='OuterField1' type='OuterField' />
</Fields>
</ContentType>
");
var content = Content.CreateNew("OuterFieldTestContentType", _testRoot, new Guid().ToString());
content["OuterField1"] = "asdf";
content.ContentHandler.Index = 123;
content.Save();
var id = content.Id;
content = Content.Load(id);
var fieldValue = content["OuterField1"];
var indexValue = content.ContentHandler.Index;
Assert.IsTrue(content.ContentHandler.PropertyTypes["OuterField1"] == null, "#1");
Assert.IsTrue(content.ContentHandler.Index == 124, "#2");
}
[TestMethod]