本文整理汇总了C#中System.Threading.Tasks.Should方法的典型用法代码示例。如果您正苦于以下问题:C# System.Threading.Tasks.Should方法的具体用法?C# System.Threading.Tasks.Should怎么用?C# System.Threading.Tasks.Should使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Threading.Tasks
的用法示例。
在下文中一共展示了System.Threading.Tasks.Should方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Version_should_be_compatible
public async Task Version_should_be_compatible()
{
// This isn't really a test.
// It's here for my own record keeping,
// if something breaks I'll know the last good version from
// test/git history
var supportedVersions = new[]
{
//"0.22.0",
//"0.25.0",
//"0.26.0",
//"0.27.0",
//"0.28.0",
// Broken at 0.29.0
//"0.29.0",
//"0.30.0",
//"0.31.0",
// Pin messages broken, different return room lookup
"0.32.0",
"0.33.0",
"0.34.0",
"0.35.0",
};
await DefaultAccountLoginAsync();
// Act
var results = await RocketChatDriver.GetStatisticsAsync();
// Assert
supportedVersions.Should().Contain(results.Result.Version);
}