public void CloneReturnTypeTest2() { RectMatrix <int, int> matrix = new RectMatrix <int, int>(); matrix.EnsureSize(1, 1); matrix[0, 0] = 1; ICloneable cloneable = matrix; var clone = cloneable.Clone(); Assert.AreSame(matrix.GetType(), clone.GetType()); }