Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldReturnSensiblePathWhereServiceIsHosted()
            public virtual void ShouldReturnSensiblePathWhereServiceIsHosted()
            {
                // given
                VersionAndEditionService service = new VersionAndEditionService(mock(typeof(CommunityNeoServer)));

                // when
                string serverPath = service.ServerPath;

                // then
                assertEquals("server/version", serverPath);
            }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldReturnReadableStringForServiceName()
            public virtual void ShouldReturnReadableStringForServiceName()
            {
                // given
                VersionAndEditionService service = new VersionAndEditionService(mock(typeof(CommunityNeoServer)));

                // when
                string serviceName = service.Name;

                // then
                assertEquals("version", serviceName);
            }