public void SetFieldValue_NotLoadedClass_ThrowsException() { //Assign NotLoadedClass target = new NotLoadedClass(); target.Id = Guid.NewGuid(); SitecoreProperty property = AttributeConfigurationLoader.GetProperty(typeof(RootClass).GetProperty("NotLoaded")); _handler.ConfigureDataHandler(property); //Act var result = _handler.SetFieldValue(target, _service); //Assert Assert.AreEqual(target.Id, new Guid(result)); }