internal static JsonShelveSet GetInstance([CallerMemberName] string callerName = "") { JToken json = new JObject(); JsonSource(ref json); JsonShelveSet instance = JsonShelveSet.FromToken(json); InstanceFactory(ref instance, callerName); return(instance); }
public void FromToken_UnitTest() { JToken token = default(JToken); JsonShelveSet _retVal = default(JsonShelveSet); ExecuteMethod( () => { return(GetInstance()); }, instance => { token = default(JToken); //No Constructor FromToken_PreCondition(instance, ref token); }, instance => { return(_retVal = JsonShelveSet.FromToken(token)); }, instance => { FromToken_PostValidate(instance, token, _retVal); }); }