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