Skip to content

Commit

Permalink
Add failing test for proxying type derived from generic record type
Browse files Browse the repository at this point in the history
  • Loading branch information
stakx committed Dec 29, 2022
1 parent 1f6905e commit 2d944e4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright 2004-2022 Castle Project - http://www.castleproject.org/
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

namespace Castle.DynamicProxy.Tests.Records
{
public record DerivedEmptyGenericRecord : EmptyGenericRecord<object>
{
}
}
6 changes: 6 additions & 0 deletions src/Castle.Core.Tests/DynamicProxy.Tests/RecordsTestCase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,11 @@ public void Can_proxy_empty_generic_record()
{
_ = generator.CreateClassProxy<EmptyGenericRecord<object>>(new StandardInterceptor());
}

[Test]
public void Can_proxy_derived_empty_generic_record()
{
_ = generator.CreateClassProxy<DerivedEmptyGenericRecord>(new StandardInterceptor());
}
}
}

0 comments on commit 2d944e4

Please sign in to comment.