Пример #1
0
        public void Should_Add_Config_Statistics_Argument(bool value, string expected)
        {
            // Given
            var fixture = new GenymotionConfigFixture();

            fixture.Settings.EnableStatistics = value;

            // When
            var result = fixture.Run();

            // Then
            result.Args.Should().Be(expected);
        }
Пример #2
0
        public void Should_Add_Timeout_Flag_To_Arguments_If_Set(int?timeout, string expected)
        {
            // Given
            var fixture = new GenymotionConfigFixture();

            fixture.Settings.Timeout = timeout;

            // When
            var result = fixture.Run();

            // Then
            result.Args.Should().Be(expected);
        }
Пример #3
0
        public void Should_Add_Config_Username_Argument(string value, string expected)
        {
            // Given
            var fixture = new GenymotionConfigFixture();

            fixture.Settings.Username = value;

            // When
            var result = fixture.Run();

            // Then
            result.Args.Should().Be(expected);
        }
Пример #4
0
        public void Should_Use_Genymotion_Runner_From_Tool_Path_If_Provided(string toolPath, string expected)
        {
            // Given
            var fixture = new GenymotionConfigFixture {
                Settings = { ToolPath = toolPath }
            };

            fixture.GivenSettingsToolPathExist();

            // When
            var result = fixture.Run();

            // Then
            result.Path.FullPath.Should().Be(expected);
        }