public void Create_SimpleType_NamedMember() { var session = new BuildSession(null, null, new Random(0)); var obj = new SimpleType(); session.PushObject(new ObjectBuildRecord(typeof(SimpleType), obj, true)); session.PushMember(MemberExpressions.GetMemberInfo <SimpleType>(c => c.NamedMember)); Assert.AreEqual("NamedMember0", Generator.CreateRecord(typeof(string), null, session).Object); Assert.AreEqual("NamedMember1", Generator.CreateRecord(typeof(string), null, session).Object); Assert.AreEqual("NamedMember2", Generator.CreateRecord(typeof(string), null, session).Object); }