//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void inUseRecordEquality() public virtual void InUseRecordEquality() { NeoStoreRecord record1 = new NeoStoreRecord(); record1.Initialize(true, 1); NeoStoreRecord record2 = record1.Clone(); NeoStoreCheckType check = new NeoStoreCheckType(); assertTrue(check.Equal(record1, record2)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void notInUseRecordEquality() public virtual void NotInUseRecordEquality() { NeoStoreRecord record1 = new NeoStoreRecord(); record1.Initialize(false, 1); NeoStoreRecord record2 = new NeoStoreRecord(); record2.Initialize(false, 11); NeoStoreCheckType check = new NeoStoreCheckType(); assertTrue(check.Equal(record1, record2)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldReadNeoStoreCommand() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldReadNeoStoreCommand() { // Given InMemoryClosableChannel channel = new InMemoryClosableChannel(); NeoStoreRecord before = new NeoStoreRecord(); NeoStoreRecord after = new NeoStoreRecord(); after.NextProp = 42; (new Command.NeoStoreCommand(before, after)).Serialize(channel); // When PhysicalLogCommandReaderV3_0 reader = new PhysicalLogCommandReaderV3_0(); Command command = reader.Read(channel); assertTrue(command is Command.NeoStoreCommand); Command.NeoStoreCommand neoStoreCommand = (Command.NeoStoreCommand)command; // Then assertEquals(before.NextProp, neoStoreCommand.Before.NextProp); assertEquals(after.NextProp, neoStoreCommand.After.NextProp); }