//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldListLocksHeldByTheCurrentClient() public virtual void ShouldListLocksHeldByTheCurrentClient() { // given ClientA.acquireExclusive(LockTracer.NONE, NODE, 1, 2, 3); ClientA.acquireShared(LockTracer.NONE, NODE, 3, 4, 5); // when //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: java.util.stream.Stream<? extends ActiveLock> locks = clientA.activeLocks(); Stream <ActiveLock> locks = ClientA.activeLocks(); // then assertEquals(new HashSet <>(asList(exclusiveLock(NODE, 1), exclusiveLock(NODE, 2), exclusiveLock(NODE, 3), sharedLock(NODE, 3), sharedLock(NODE, 4), sharedLock(NODE, 5))), locks.collect(toSet())); }