public void DeletedAtSourceContent()
        {
            var content = new DeletedAtSourceContent();

            using (MemoryStream stream = new MemoryStream())
                using (Utf8JsonWriter writer = new Utf8JsonWriter(stream))
                {
                    converter.Write(writer, content, null);

                    var json = Encoding.UTF8.GetString(stream.ToArray());

                    Assert.IsTrue(json.Length > 0);
                    Assert.IsTrue(Regex.IsMatch(json, "\"ContentType\":\"DeletedAtSource\""));
                }
        }
Exemple #2
0
        public void DeletedAtSourceContent()
        {
            var instance = new DeletedAtSourceContent();

            Assert.DoesNotThrow(() => StoreAndRetrieve(instance));
        }