public static AndConstraint<ComparableTypeAssertions<BsonDocument>> Be(this ComparableTypeAssertions<BsonDocument> assertions, BsonDocument other)
 {
     return assertions.Be(other);
 }
 public static AndConstraint<ComparableTypeAssertions<BsonDocument>> Be(this ComparableTypeAssertions<BsonDocument> assertions, string json)
 {
     return assertions.Be(BsonDocument.Parse(json));
 }
 public static void NotBeInvoked(this NumericAssertions<int> assertions)
 {
     assertions.Be(0);
 }
 public static void BeInvokedOnce(this NumericAssertions<int> assertions)
 {
     assertions.Be(1);
 }
 public static void BeInvoked(this NumericAssertions<int> assertions, int ntimes)
 {
     assertions.Be(ntimes);
 }
Ejemplo n.º 6
0
 public static AndConstraint<StringAssertions> BeInObject(this StringAssertions assert, string objectName, string ctorBody)
 {
     return assert.Be(InObject(objectName, ctorBody));
 }