add: WeatherModule
This commit is contained in:
26
Katheryne.Tests/Modules/WeatherModuleTests.cs
Normal file
26
Katheryne.Tests/Modules/WeatherModuleTests.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Katheryne.Modules;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace Katheryne.Tests.Modules;
|
||||
|
||||
public class WeatherModuleTests
|
||||
{
|
||||
private readonly ITestOutputHelper _output;
|
||||
|
||||
public WeatherModuleTests(ITestOutputHelper output)
|
||||
{
|
||||
_output = output;
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void WeatherModuleTest()
|
||||
{
|
||||
var weather = new WeatherModule();
|
||||
|
||||
Assert.True(weather.ContainsParam("text"));
|
||||
Assert.True(weather.ContainsParam("temp"));
|
||||
|
||||
_output.WriteLine(weather["text"]);
|
||||
_output.WriteLine(weather["temp"]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user