public async Task TestGetServicesAsync_PassesKubeconfig() { SetupGetJsonOutput(new GkeList <GkeService>()); await _objectUnderTest.GetServicesAsync(); VerifyGetJsonOutputArgsContain <GkeList <GkeService> >($"--kubeconfig=\"{_kubeConfigPath}\""); }
public async Task TestGetServicesAsync_PassesKubeconfig() { _processServiceMock.SetupGetJsonOutput <GkeList <GkeService> >() .ReturnsResult(new GkeList <GkeService>()); await _objectUnderTest.GetServicesAsync(); _processServiceMock.VerifyGetJsonOutputAsyncArgs <GkeList <GkeService> >( s => s.Contains($"--kubeconfig=\"{_kubeConfigPath}\"")); }