public void ToStringEmptyObjectExpected() { var testDropBoxSource = new DropBoxSource(); string actualSerializedDropBoxSource = testDropBoxSource.ToString(); string expected = JsonConvert.SerializeObject(testDropBoxSource); Assert.AreEqual(expected, actualSerializedDropBoxSource); }
public void DropBoxSource_ToString_EmptyObject_AreEqual_ExpectedTrue() { var testDropBoxSource = new DropBoxSource(); var actualSerializedDropBoxSource = testDropBoxSource.ToString(); var expected = JsonConvert.SerializeObject(testDropBoxSource); Assert.AreEqual(expected, actualSerializedDropBoxSource); }
public void ToStringFullySetupObjectExpectedJsonSerializedObjectReturnedAsString() { DropBoxSource testDropBoxSource = SetupDefaultDropBoxSource(); string actualDropBoxSourceToString = testDropBoxSource.ToString(); string expected = JsonConvert.SerializeObject(testDropBoxSource); Assert.AreEqual(expected, actualDropBoxSourceToString); }