Lines Matching refs:oneofMessage
293 let autoCreated = msg.oneofMessage // Default create one. in testProto2OneOfSupport()
301 XCTAssertTrue(msg.oneofMessage === autoCreated) // Still the same in testProto2OneOfSupport()
308 XCTAssertTrue(msg.oneofMessage === autoCreated) // Still the same in testProto2OneOfSupport()
315 XCTAssertTrue(msg.oneofMessage === autoCreated) // Still the same in testProto2OneOfSupport()
319 msg.oneofMessage.optionalInt32 = 200 in testProto2OneOfSupport()
323 XCTAssertTrue(msg.oneofMessage === autoCreated) // Still the same in testProto2OneOfSupport()
324 XCTAssertEqual(msg.oneofMessage.optionalInt32, Int32(200)) in testProto2OneOfSupport()
332 let autoCreated2 = msg.oneofMessage // Default create one in testProto2OneOfSupport()
335 XCTAssertEqual(msg.oneofMessage.optionalInt32, Int32(0)) // Default in testProto2OneOfSupport()
348 msg.oneofMessage.optionalInt32 = 300 in testProto2OneOfSupport()
349 XCTAssertTrue(msg.oneofMessage !== autoCreated) // New instance in testProto2OneOfSupport()
350 XCTAssertTrue(msg.oneofMessage !== autoCreated2) // New instance in testProto2OneOfSupport()
351 XCTAssertEqual(msg.oneofMessage.optionalInt32, Int32(300)) in testProto2OneOfSupport()
355 msg.oneofMessage = nil in testProto2OneOfSupport()
356 XCTAssertEqual(msg.oneofMessage.optionalInt32, Int32(0)) // Default in testProto2OneOfSupport()
367 let autoCreated = msg.oneofMessage // Default create one. in testProto3OneOfSupport()
375 XCTAssertTrue(msg.oneofMessage === autoCreated) // Still the same in testProto3OneOfSupport()
382 XCTAssertTrue(msg.oneofMessage === autoCreated) // Still the same in testProto3OneOfSupport()
389 XCTAssertTrue(msg.oneofMessage === autoCreated) // Still the same in testProto3OneOfSupport()
393 msg.oneofMessage.optionalInt32 = 200 in testProto3OneOfSupport()
397 XCTAssertTrue(msg.oneofMessage === autoCreated) // Still the same in testProto3OneOfSupport()
398 XCTAssertEqual(msg.oneofMessage.optionalInt32, Int32(200)) in testProto3OneOfSupport()
406 let autoCreated2 = msg.oneofMessage // Default create one in testProto3OneOfSupport()
409 XCTAssertEqual(msg.oneofMessage.optionalInt32, Int32(0)) // Default in testProto3OneOfSupport()
422 msg.oneofMessage.optionalInt32 = 300 in testProto3OneOfSupport()
423 XCTAssertTrue(msg.oneofMessage !== autoCreated) // New instance in testProto3OneOfSupport()
424 XCTAssertTrue(msg.oneofMessage !== autoCreated2) // New instance in testProto3OneOfSupport()
425 XCTAssertEqual(msg.oneofMessage.optionalInt32, Int32(300)) in testProto3OneOfSupport()
429 msg.oneofMessage = nil in testProto3OneOfSupport()
430 XCTAssertEqual(msg.oneofMessage.optionalInt32, Int32(0)) // Default in testProto3OneOfSupport()