Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldReturnSameLoggerForSameContext()
        internal virtual void ShouldReturnSameLoggerForSameContext()
        {
            // Given
            DuplicatingLogProvider logProvider = new DuplicatingLogProvider();

            // Then
            DuplicatingLog log = logProvider.GetLog("test context");

            assertThat(logProvider.GetLog("test context"), sameInstance(log));
        }
Пример #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldReturnSameLoggerForSameClass()
        internal virtual void ShouldReturnSameLoggerForSameClass()
        {
            // Given
            DuplicatingLogProvider logProvider = new DuplicatingLogProvider();

            // Then
            DuplicatingLog log = logProvider.getLog(this.GetType());

            assertThat(logProvider.GetLog(typeof(DuplicatingLogProviderTest)), sameInstance(log));
        }