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