8 references to ClassWithParameterlessCtor
Microsoft.AspNetCore.DataProtection.Tests (8)
ActivatorTests.cs (8)
21
var
retVal1 = (
ClassWithParameterlessCtor
)activator.CreateInstance<object>(typeof(
ClassWithParameterlessCtor
).AssemblyQualifiedName);
42
var
retVal1 = (
ClassWithParameterlessCtor
)activator.CreateInstance<object>(typeof(
ClassWithParameterlessCtor
).AssemblyQualifiedName);
63
() => activator.CreateInstance<IDisposable>(typeof(
ClassWithParameterlessCtor
).AssemblyQualifiedName));
64
Assert.Equal(Resources.FormatTypeExtensions_BadCast(typeof(IDisposable).AssemblyQualifiedName, typeof(
ClassWithParameterlessCtor
).AssemblyQualifiedName), ex.Message);