public void PreConfiguredWithoutTestcontainersImplementation() { // Given var notPreConfigured = new NotPreConfigured(); // When // Then Assert.Equal(string.Empty, notPreConfigured.Image); Assert.Equal(0, notPreConfigured.DefaultPort); Assert.Equal(0, notPreConfigured.Port); Assert.Equal(0, notPreConfigured.Environments.Count); Assert.Null(notPreConfigured.Username); Assert.Null(notPreConfigured.Password); Assert.IsAssignableFrom <RedirectStdoutAndStderrToNull>(notPreConfigured.OutputConsumer); Assert.IsAssignableFrom <UntilContainerIsRunning>(notPreConfigured.WaitStrategy.Build().First()); }
public void PreConfiguredWithoutTestcontainersImplementation() { // Given var notPreConfigured = new NotPreConfigured(); // When // Then Assert.Equal(string.Empty, notPreConfigured.Image); Assert.Equal(0, notPreConfigured.DefaultPort); Assert.Equal(0, notPreConfigured.Port); Assert.Equal(0, notPreConfigured.Environments.Count); Assert.Equal("localhost", notPreConfigured.Hostname); Assert.Null(notPreConfigured.Username); Assert.Null(notPreConfigured.Password); Assert.IsAssignableFrom <OutputConsumerNull>(notPreConfigured.OutputConsumer); Assert.IsAssignableFrom <IWaitUntil>(notPreConfigured.WaitStrategy); }