Example #1
0
        public void GivenALongMaxAndATypeThenAnInstanceIsReturned()
        {
            long max  = -1;
            Type type = GetType();

            _ = new EntityMaximumIdValueExceededException(max, type);
        }
Example #2
0
        public void GivenAnInstanceThenAllPropertiesAreSerialized()
        {
            ulong max      = 1;
            Type  type     = GetType();
            var   original = new EntityMaximumIdValueExceededException(max, type);
            EntityMaximumIdValueExceededException deserialized = original.Clone();

            Assert.NotSame(original, deserialized);
            Assert.NotSame(original.Message, deserialized.Message);
        }