diff --git a/FastMoq.Core/Models/ConstructorHistory.cs b/FastMoq.Core/Models/ConstructorHistory.cs index f0c4256..3ba4f61 100644 --- a/FastMoq.Core/Models/ConstructorHistory.cs +++ b/FastMoq.Core/Models/ConstructorHistory.cs @@ -224,7 +224,7 @@ public bool Contains(Type key) public bool TryGetValue(Type key, out ReadOnlyCollection value) { var result = constructorHistory.TryGetValue(key, out var value2); - value = value2?.AsReadOnly(); + value = value2?.AsReadOnly() ?? new List().AsReadOnly(); return result; }