Beispiel #1
0
        public void constructor_should_initialize_instance(
            [Values(0, 1, 2, int.MaxValue)] int w)
        {
            var subject = new CreateIndexCommitQuorumWithW(w);

            subject.W.Should().Be(w);
        }
Beispiel #2
0
        public void ToBsonValue_should_return_expected_result(
            [Values(1, 2, 3)] int w)
        {
            var subject = new CreateIndexCommitQuorumWithW(w);

            var result = subject.ToBsonValue();

            var r = result.Should().BeOfType <BsonInt32>().Subject;

            r.Value.Should().Be(w);
        }