Exemple #1
0
        public void ToString_should_return_string_representation()
        {
#pragma warning disable CS0618 // Type or member is obsolete
            var subject = new ClusterDescription(new ClusterId(1), ClusterConnectionMode.Standalone, ClusterType.Standalone, new[] { __serverDescription1 });
#pragma warning restore CS0618 // Type or member is obsolete
            var expected = string.Format("{{ ClusterId : \"1\", ConnectionMode : \"Standalone\", Type : \"Standalone\", State : \"Disconnected\", Servers : [{0}] }}",
                                         __serverDescription1.ToString());
            subject.ToString().Should().Be(expected);
        }
Exemple #2
0
        public void ToString_should_return_string_representation()
        {
            var subject  = new ClusterDescription(new ClusterId(1), ClusterConnectionMode.Standalone, ClusterType.Standalone, new[] { __serverDescription1 });
            var expected = string.Format("{{ ClusterId : \"1\", ConnectionMode : \"Standalone\", Type : \"Standalone\", State : \"Disconnected\", Servers : [{0}] }}",
                                         __serverDescription1.ToString());

            subject.ToString().Should().Be(expected);
        }