Please strongly name any BDTest asseblies so BDTest can be used in Signed Test Projects
I am unable to use BDTest within Signed test projects as BDTest assemblies are not strongly named.
The below exception is thrown upon test execution:
System.IO.FileLoadException : Could not load file or assembly 'BDTest, Version=2.3.27.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
Intiaiting code is a as simple as:
[Test]
public void TestPass()
{
new BDTestBuilder()
.When(() => DoNothing())
.Then(() => DoNothing())
.BDTest();
}
public void DoNothing()
{
}
Please note that not using the BDTestBuilder and inheriting from a base test class results in the test not running at all and no errors being produced
My test projects have to be strongly named as they require visibility of internal members of their production counterparts (the production counterparts are signed hence why the test project is signed)
https://learn.microsoft.com/en-us/dotnet/standard/library-guidance/strong-naming
https://learn.microsoft.com/en-us/dotnet/standard/assembly/sign-strong-name
Required changes can be found in this PR
Thanks @AbsAlnaffakh . I've approved and released a new version. Could you let me know if it works for you?
Thanks @thomhurst, Yes the tests now execute within the signed test project and the compiler no longer produces a warning that complains about the the BDTest assemblies not being signed.