Ejemplo n.º 1
0
        public void CreateDriverDocument_should_return_expected_result()
        {
            var result = ClientDocumentHelper.CreateDriverDocument();

            result["name"].AsString.Should().Be("mongo-csharp-driver");
            result["version"].BsonType.Should().Be(BsonType.String);
        }
Ejemplo n.º 2
0
        public void CreateDriverDocument_with_args_should_return_expected_result(
            [Values("2.4.0", "2.4.1")]
            string driverVersion)
        {
            var result = ClientDocumentHelper.CreateDriverDocument(driverVersion);

            result.Should().Be($"{{ name : 'mongo-csharp-driver', version : '{driverVersion}' }}");
        }