PageRenderTime 48ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/src/MongoDB.Bson.TestHelpers/BsonAssertionExtensions.cs

http://github.com/mongodb/mongo-csharp-driver
C# | 29 lines | 12 code | 2 blank | 15 comment | 0 complexity | 128e863b0d8f3f3a1a1306381d897bba MD5 | raw file
Possible License(s): Apache-2.0
  1. /* Copyright 2010-2014 MongoDB Inc.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. using MongoDB.Bson;
  16. using MongoDB.Bson.TestHelpers;
  17. namespace FluentAssertions // use FluentAssertions namespace so that these extension methods are automatically available
  18. {
  19. public static class BsonAssertionExtensions
  20. {
  21. // static methods
  22. public static BsonDocumentAssertions Should(this BsonDocument actualValue)
  23. {
  24. return new BsonDocumentAssertions(actualValue);
  25. }
  26. }
  27. }