public void Should_Set_Working_Directory() { // Given var fixture = new AppleSimulatorListRuntimesFixture(); // When var result = fixture.Run(); // Then Assert.Equal("/Working", result.Process.WorkingDirectory.FullPath); }
public void Should_Find_AppleSimulator_If_Tool_Path_Not_Provided() { // Given var fixture = new AppleSimulatorListRuntimesFixture(); // When var result = fixture.Run(); // Then Assert.Equal("/Working/tools/simctl", result.Path.FullPath); }
public void Should_Use_AppleSimulator_Runner_From_Tool_Path_If_Provided(string toolPath, string expected) { // Given var fixture = new AppleSimulatorListRuntimesFixture { Settings = { ToolPath = toolPath } }; fixture.GivenSettingsToolPathExist(); // When var result = fixture.Run(); // Then result.Path.FullPath.Should().Be(expected); }
public void Should_Return_Correct_DeviceType_Details() { // Given var fixture = new AppleSimulatorListRuntimesFixture(); // When var result = fixture.Run(); // Then fixture.ToolResult.Should().HaveCount(5); fixture.ToolResult.First().Name.Should().Be("iOS 10.3"); // correct order fixture.ToolResult.Last().Name.Should().Be("watchOS 6.1"); fixture.ToolResult.Last().Identifier.Should().Be("com.apple.CoreSimulator.SimRuntime.watchOS-6-1"); }