Initial release
- Added
MockModule
- Added
MockModuleBuilder
- Deleted
ModuleBuilder
- Prefix test environment directories.
- The
TestEnvironmentProvider
no longer fails duringDispose
when files are removed manually. - Readonly files created manually (after the
TestEnvironmentProvider
) has been created are also deleted properly.
- The constructor
TestFile(string filePath)
has been removed. UseTestFile.Create(string filePath)
instead. TestFile
s can be created from anAssembly
usingTestFile.Create(...)
.- Added
TestEnvironmentBuilder
.
- Allow
MockModuleBuilder
to register anythingContainerBuilder
can. - Add shortcuts to
ContainerBuilder
functionality e.g.RegisterModule
andRegisterInstance
.
- Fix
RegisterModule(Mock<T> mock)
by removingnew()
restriction.
- Using
Messerli.CompositionRoot
nuget package - Converted
MockModuleBuilders
mock functionality toModuleBuilderMockExtension
andContainerBuilderMockExtension
- Deleted
MockModule
andMockModuleBuilder
because the functionality is inMesserli.CompositionRoot
nuget package.
- Changed the return type of
ModuleBuilderMockExtension
andContainerBuilderMockExtension
.
- Add
System
,Windows
andInternal
to excluded namespace list. - Improve detection of ignored namespaces.
- Update Autofac to 5.1.
- Add support for .NET Standard 2.0.
- Seal all classes.
Rerelease of 0.6.0 with fixed nuget package.
- Add
TypesThatNeedToBeImplementedInAssemblyData
attribute which provides a list of types that need to implemented in an assembly to an xUnit theory. - Remove
ModuleInterfaceEnumerable
,ObjectArrayEnumerable
, andContainerInterfaceRetriever
. They are superseded byTypesThatNeedToBeImplementedInAssemblyData
.
- Fix regression where static classes and generic types where treated as types that need to be implemented.
- Add extension method
GetRegisteredTypes
onIComponentContext
to retrieve all registered types.
- Allow blacklisting of types on
TypesThatNeedToBeImplementedInAssemblyData
attribute using a new attribute:ExcludedTypes
.
- Make sure that the exception thrown by the
TypesThatNeedToBeImplementedInAssemblyData
attribute when the specified assembly can't be found is displayed in the test explorer. - Add
TypesRegisteredInContainerDataAttribute
attribute which provides the types registered in an Autofac container as xUnit theory data. - Seal
ExcludedTypesAttribute
and make itsTypes
member internal. - Seal
TypesThatNeedToBeImplementedInAssemblyDataAttribute
.
TypesRegisteredInContainerData
now ignores keyed and named registrations.
[TypesRegisterdInContainerData]
now respects the[ExcludedTypes]
attribute.
- Add compatibility for Autofac 6.x.
- Only depend on
System.Collections.Immutable
when targeting .NET Standard. - Enable nullable annotations introduced with C# 8.
- Fix
[TypesThatNeedToBeImplementedInAssemblyData]
when tests are run in Rider.
- Fix
[TypesThatNeedToBeImplementedInAssemblyDataAttribute]
ignoring internals and privates. - Add
[TypesThatNeedToBeImplementedInAssemblyDataAttribute]
optional parameter[IncludeInternals]
.
- Relax version constraint for
Messerli.CompositionRoot
.
- Update to newest version of
Messerli.TempDirectory
. - Enable source link and deterministic builds.
- Add
TargetFramework
net8.0
. - Remove
TargetFramework
netcoreapp3.1
. - Update
Autofac
to7.1.0
.
- Update
Messerli.CompositionRoot
to1.1.2