MongoDB.DriverUnitTests.SystemProfileInfoTests.TestMinimal C# (CSharp) Метод

TestMinimal() приватный Метод

private TestMinimal ( ) : void
Результат void
        public void TestMinimal()
        {
            var info = new SystemProfileInfo
            {
                Timestamp = new DateTime(2011, 10, 7, 0, 0, 0, DateTimeKind.Utc),
                Duration = TimeSpan.FromMilliseconds(123)
            };
            var expected = "{ 'ts' : ISODate('2011-10-07T00:00:00Z'), 'millis' : 123.0 }".Replace("'", "\"");
            Assert.AreEqual(expected, info.ToJson());
        }