public void SerializesNullValue()
        {
            var obj = new ClassWithSecureString {
                Secret = null
            };

            var json = JsonConvert.SerializeObject(obj);

            Assert.AreEqual(@"{""Secret"":null}", json);
        }
        public void SerializesSecureString()
        {
            var obj = new ClassWithSecureString {
                Secret = "SECRET".ToSecureString()
            };

            var json = JsonConvert.SerializeObject(obj);

            Assert.AreEqual(@"{""Secret"":""SECRET""}", json);
        }