Welcome to the learning playground a space to try interactive concepts related to Power Fx and testing. You can use the steps of each playground task to explore different key concepts.
Once have completed each set of learning playground concepts have a look at related learning playground tasks to build your knowledge.
Learn how to use the Assert() function with a simulated connector in your test.
You can try the following to experiment with this playground task:
Reset the test and use the following to see that Other and Cold are returned:
Preview.SimulateConnector({Name:"WeatherService", Then: {Location: "Other", Condition: "Cold"}}); WeatherService.GetCurrentWeather("Seattle, WA")