Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void partitionSearchersAreClosed() throws java.io.IOException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void PartitionSearchersAreClosed()
        {
            PartitionedUniquenessVerifier verifier = CreatePartitionedVerifier();

            verifier.Dispose();

            verify(_searcher1).close();
            verify(_searcher2).close();
            verify(_searcher3).close();
        }
Пример #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void verifyPropertyUpdates() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void VerifyPropertyUpdates()
        {
            PartitionedUniquenessVerifier verifier             = CreatePartitionedVerifier();
            NodePropertyAccessor          nodePropertyAccessor = mock(typeof(NodePropertyAccessor));

            verifier.Verify(nodePropertyAccessor, new int[] { 42 }, valueTupleList("a", "b"));

            VerifySearchInvocations(_searcher1, "a", "b");
            VerifySearchInvocations(_searcher2, "a", "b");
            VerifySearchInvocations(_searcher3, "a", "b");
        }