[CSHARP-1109] Remove project reference from MongoDB.Driver.Tests to MongoDB.Driver.Core.Tests Created: 20/Nov/14 Updated: 02/Apr/15 Resolved: 02/Dec/14 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Testing |
| Affects Version/s: | None |
| Fix Version/s: | 2.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Robert Stam | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
We currently have a reference from the MongoDB.Driver.Tests project to the MongoDB.Driver.Core.Tests projects. The reason for the reference is to gain access to the RequiresServerAttribute. But we shouldn't have a reference to the entire test project. That gives unintended access to everything in the project and can result in name conflicts or subtle bugs. We should either just copy/adapt the one class that is currently being accessed via the reference, or create a helper DLL with the shared types that any test project can reference. |
| Comments |
| Comment by Githook User [ 03/Dec/14 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: |
| Comment by Githook User [ 02/Dec/14 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: |
| Comment by Githook User [ 02/Dec/14 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: |
| Comment by Githook User [ 02/Dec/14 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: |
| Comment by Robert Stam [ 01/Dec/14 ] |
|
As a first step we are creating a MongoDB.Bson.TestHelpers projects to hold some helper classes useful across all our test projects. Initially this revolves around centralizing some FluentAssertions related helpers, including a way to assert that an actual object is equal to an expected object using specified equality comparers (useful when the objects being asserted against don't override Equals) and a new BsonDocumentAssertions class that lets us provide custom assertions for BsonDocuments. |