public void ToStringEmptyObjectExpected() { var testDbSource = new DbSource(); var actualSerializedDbSource = testDbSource.ToString(); var expected = JsonConvert.SerializeObject(testDbSource); Assert.AreEqual(expected, actualSerializedDbSource); }
public void ToStringFullySetupObjectExpectedJsonSerializedObjectReturnedAsString() { DbSource testDbSource = SetupDefaultDbSource(); string actualDbSourceToString = testDbSource.ToString(); string expected = JsonConvert.SerializeObject(testDbSource); Assert.AreEqual(expected, actualDbSourceToString); }