예제 #1
0
        public void Build__ReturnsProvider()
        {
            var config = new ConfigurationBuilder()
                         .AddCommandLine(Array.Empty <string>())
                         .Build();

            var source   = new SpringBootCmdSource(config);
            var provider = source.Build(new ConfigurationBuilder());

            Assert.IsType <SpringBootCmdProvider>(provider);
        }
예제 #2
0
        public void Build__ReturnsProvider()
        {
            // Arrange
            var config = new ConfigurationBuilder()
                         .AddCommandLine(new string[] { })
                         .Build();

            // Act and Assert
            var source   = new SpringBootCmdSource(config);
            var provider = source.Build(new ConfigurationBuilder());

            Assert.IsType <SpringBootCmdProvider>(provider);
        }