示例#1
0
        public void ToStringEmptyObjectExpected()
        {
            var    testDropBoxSource             = new DropBoxSource();
            string actualSerializedDropBoxSource = testDropBoxSource.ToString();
            string expected = JsonConvert.SerializeObject(testDropBoxSource);

            Assert.AreEqual(expected, actualSerializedDropBoxSource);
        }
示例#2
0
        public void DropBoxSource_ToString_EmptyObject_AreEqual_ExpectedTrue()
        {
            var testDropBoxSource             = new DropBoxSource();
            var actualSerializedDropBoxSource = testDropBoxSource.ToString();
            var expected = JsonConvert.SerializeObject(testDropBoxSource);

            Assert.AreEqual(expected, actualSerializedDropBoxSource);
        }
示例#3
0
        public void ToStringFullySetupObjectExpectedJsonSerializedObjectReturnedAsString()
        {
            DropBoxSource testDropBoxSource           = SetupDefaultDropBoxSource();
            string        actualDropBoxSourceToString = testDropBoxSource.ToString();
            string        expected = JsonConvert.SerializeObject(testDropBoxSource);

            Assert.AreEqual(expected, actualDropBoxSourceToString);
        }