Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setup()
        public virtual void Setup()
        {
            _boltChannel = mock(typeof(BoltChannel), RETURNS_MOCKS);
            when(_boltChannel.id()).thenReturn(System.Guid.randomUUID().ToString());
            when(_boltChannel.connector()).thenReturn(CONNECTOR);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void idShouldReturnBoltChannelId()
        public virtual void IdShouldReturnBoltChannelId()
        {
            BoltConnection connection = NewConnection();

            assertEquals(_boltChannel.id(), connection.Id());
        }