예제 #1
0
        public void ToStringEmptyObjectExpected()
        {
            var testDbSource             = new DbSource();
            var actualSerializedDbSource = testDbSource.ToString();
            var expected = JsonConvert.SerializeObject(testDbSource);

            Assert.AreEqual(expected, actualSerializedDbSource);
        }
예제 #2
0
        public void ToStringFullySetupObjectExpectedJsonSerializedObjectReturnedAsString()
        {
            DbSource testDbSource           = SetupDefaultDbSource();
            string   actualDbSourceToString = testDbSource.ToString();
            string   expected = JsonConvert.SerializeObject(testDbSource);

            Assert.AreEqual(expected, actualDbSourceToString);
        }