src/Castle.Core.Tests/CustomModifiersTestCase.cs
/// <summary>
/// This test checks whether Castle can generate proxies for types having a method
/// whose signature contains certain combinations of modopts or modreqs either on
/// the parameter type or on the return type.
/// </summary>
This test checks whether Castle can generate proxies for types having a method
whose signature contains certain combinations of modopts or modreqs either on
the parameter type or on the return type.
This test checks whether Castle can generate proxies for types having a method whose signature contains certain combinations of modopts or modreqs either on the parameter type or on the return type .
[TestCaseSource(nameof(AllTypeNames))]
		public void CanGenerateProxyOfTypeWithCustomModifiers(string typeName)
		{
			Assume.That(this.generatedTypes.ContainsKey(typeName));
			var type = this.generatedTypes[typeName];
			var proxyGenerator = new ProxyGenerator();
			var proxy = proxyGenerator.CreateInterfaceProxyWithoutTarget(type, new DoNothingInterceptor());
			Assert.NotNull(proxy);
		}
[ TestCaseSource ( nameof ( AllTypeNames ) ) ] public void CanGenerateProxyOfTypeWithCustomModifiers ( string typeName ) { Assume . That ( this . generatedTypes . ContainsKey ( typeName ) ) ; var type = this . generatedTypes [ typeName ] ; var proxyGenerator = new ProxyGenerator ( ) ; var proxy = proxyGenerator . CreateInterfaceProxyWithoutTarget ( type , new DoNothingInterceptor ( ) ) ; Assert . NotNull ( proxy ) ; }
This test checks whether Castle can generate proxies for types having a method
whose signature contains certain combinations of modopts or modreqs either on
the parameter type or on the return type.
This test checks whether Castle can generate proxies for types having a method whose signature contains certain combinations of modopts or modreqs either on the parameter type or on the return type .
typeName
string