public void GivenALongMaxAndATypeThenAnInstanceIsReturned() { long max = -1; Type type = GetType(); _ = new EntityMaximumIdValueExceededException(max, type); }
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); }