Example #1
0
        public void WhenSerialized_AndEntityIdIsNull_ThenDeserializeCorrectly()
        {
            var sut = new EntityNotFoundException(typeof(DummyEntity), null);

            var result = Serializer.SerializeAndDeserialize(sut);

            Assert.That(result.EntityId, Is.Null);
            Assert.That(result.ToString(), Is.EqualTo(sut.ToString()));
        }