标签:condition 类型 equal git size 元素 对象 https tags
Shouldly在GitHub的开源地址:https://github.com/shouldly/shouldly
Shouldly的官方文档:http://docs.shouldly-lib.net/
Shouldly断言框架提供了相等、迭代、动态变量、字符串、字典、任务/异步,以及异常等多方面的支持。
ShouldBeOneOf
ShouldNotBeOneOf
ShouldBeGreaterThan
ShouldBeLessThan
ShouldBeOfType
ShouldBeAssignableTo
ShouldBeInRange
ShouldNotBeInRange
ShouldStartWith
ShouldAllBe
ShouldContain
ShouldNotContain
ShouldContain(Predicate)
ShouldNotContain(Predicate)
ShouldBeEmpty
ShouldNotBeEmpty
ShouldBeOneOf
ShouldBeSubsetOf
ShouldContainKey
ShouldStartWith
ShouldNotStartWith
ShouldEndWith
ShouldNotEndWith
ShouldContain
ShouldNotContain
(包含空格)
ShouldContainWithoutWhitespace
ShouldMatch
ShouldBeNullOrEmpty
ShouldNotBeNullOrEmpty
ShouldNotContainKey
ShouldContainKeyAndValue
ShouldNotContainValueForKey
ShouldThrow
ShouldNotThrow
ShouldNotThrow(Func<Task>)
ShouldThrow
ShouldHaveProperty
CompleteIn
参数为所有断言,会检测其中所有断言,并且给出提示
ShouldSatisfyAllConditions
标签:condition 类型 equal git size 元素 对象 https tags
原文地址:http://www.cnblogs.com/mmry/p/7171696.html