internal static JsonBackedObjectBase GetInstance([CallerMemberName] string callerName = "") { JsonBackedObjectBase instance = default(JsonBackedObjectBase); InstanceFactory(ref instance, callerName); return(instance); }
public void ToJSonString_UnitTest() { JsonBackedObjectBase instance = GetInstance(); string result = instance.ToJSonString(); Assert.IsNotNull(result); }
public void SetValue_UnitTest() { JsonBackedObjectBase instance = GetInstance(); JsonBackedDataBase source = new JsonBackedField <string>((Func <JToken, string>)null); const string target = "Target Value"; instance.SetValue(source, target); }
public void TryGetValue_UnitTest() { JsonBackedObjectBase instance = GetInstance(); JsonBackedDataBase source = new JsonBackedField <string>((Func <JToken, string>)null); string target; bool result = instance.TryGetValue(source, out target); Assert.IsFalse(result); Assert.IsNull(target); }
public void JsonValue_UnitTest() { ExecuteProperty( () => // Create Test Instance { JsonBackedObjectBase instance = GetInstance(); return(instance); }, null, null, null, // No Set Accessor // Invoke Getter instance => { return(instance.JsonValue); }, // Validate Get Operation (instance, setValue, getValue) => { }); }
partial void ToString_PostValidate(JsonBackedObjectBase instance, String _retVal);
partial void JsonValue_SetCondition(ref JsonBackedObjectBase instance, ref JToken setValue);
static partial void InstanceFactory(ref JsonBackedObjectBase instance, [CallerMemberName] string callerName = "");
partial void GetType_PreCondition(ref JsonBackedObjectBase instance);
partial void GetType_PostValidate(JsonBackedObjectBase instance, Type _retVal);
partial void Equals_PreCondition(ref JsonBackedObjectBase instance, ref Object obj);
partial void Equals_PostValidate(JsonBackedObjectBase instance, Object obj, Boolean _retVal);
partial void CaptureJson_PreCondition(ref JsonBackedObjectBase instance, ref JToken token);
partial void CaptureJson_PostValidate(JsonBackedObjectBase instance, JToken token);
partial void ToString_PreCondition(ref JsonBackedObjectBase instance);
partial void GetHashCode_PostValidate(JsonBackedObjectBase instance, Int32 _retVal);
static partial void InstanceFactory(ref JsonBackedObjectBase instance, string callerName) { instance = new JsonUnitTestObject(String.Empty); }