/// <summary> /// Withes the simple value. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="value">The value.</param> /// <returns>ClrObjectBuilder.</returns> public ClrObjectBuilder WithSimpleValue <T>(T value) { WithType(""); TypeMock.Setup(type => type.HasSimpleValue).Returns(true); TypeMock.Setup(type => type.GetValue(It.IsAny <ulong>())).Returns(value); return(this); }
/// <summary> /// Withes the type. /// </summary> /// <param name="typeName">Name of the type.</param> /// <returns>ClrObjectBuilder.</returns> public ClrObjectBuilder WithType(string typeName) { TypeMock.Setup(type => type.Name).Returns(typeName); return(this); }