Skip to content

Commit

Permalink
tests: quick fix for Snowflake.Framework being a reserved namespace (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chyyran committed Jan 27, 2022
1 parent 17e1185 commit d5eb772
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 5 deletions.
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<_SnowflakeUseDevelopmentSDK>true</_SnowflakeUseDevelopmentSDK>
<AssemblyName>Snowflake.Tests.DummyComposable</AssemblyName>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Snowflake.Framework.Tests.DummyComposable/module.json
@@ -1,5 +1,5 @@
{
"entry": "Snowflake.Framework.Tests.DummyComposable.dll",
"entry": "Snowflake.Tests.DummyComposable.dll",
"loader": "assembly",
"frameworkVersion": "1.0.0",
"version": "1.0.0",
Expand Down
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<_SnowflakeUseDevelopmentSDK>true</_SnowflakeUseDevelopmentSDK>
<AssemblyName>Snowflake.Tests.DummyComposableInterface</AssemblyName>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="..\stylecop.json" />
Expand Down
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<_SnowflakeUseDevelopmentSDK>true</_SnowflakeUseDevelopmentSDK>
<AssemblyName>Snowflake.Tests.InvalidComposable</AssemblyName>
</PropertyGroup>

<ItemGroup>
Expand Down
@@ -1,5 +1,5 @@
{
"entry": "Snowflake.Framework.Tests.InvalidComposable.dll",
"entry": "Snowflake.Tests.InvalidComposable.dll",
"loader": "assembly",
"frameworkVersion": "1.0.0",
"version": "1.0.0",
Expand Down
6 changes: 3 additions & 3 deletions src/Snowflake.Framework.Tests/Loader/AssemblyComposerTests.cs
Expand Up @@ -32,7 +32,7 @@ public void AssemblyComposer_ComposeTest()
var container = new ServiceContainer(appDataDirectory.FullName, "https://localhost:9797");

Assert.Contains(container.Get<IModuleEnumerator>()
.Modules, m => m.Entry == "Snowflake.Framework.Tests.DummyComposable.dll");
.Modules, m => m.Entry == "Snowflake.Tests.DummyComposable.dll");

var assemblyComposer = new AssemblyComposer(container, container.Get<IModuleEnumerator>());
assemblyComposer.Compose();
Expand All @@ -55,7 +55,7 @@ public void AssemblyComposer_InvalidComposeTest()
var container = new ServiceContainer(appDataDirectory.FullName, "https://localhost:9797");

Assert.Contains(container.Get<IModuleEnumerator>()
.Modules, m => m.Entry == "Snowflake.Framework.Tests.InvalidComposable.dll");
.Modules, m => m.Entry == "Snowflake.Tests.InvalidComposable.dll");

var assemblyComposer = new AssemblyComposer(container, container.Get<IModuleEnumerator>());
assemblyComposer.Compose();
Expand All @@ -77,7 +77,7 @@ public void AssemblyComposer_InvalidBruteforceComposeTest()
var container = new ServiceContainer(appDataDirectory.FullName, "http://localhost:9797");

var module = container.Get<IModuleEnumerator>()
.Modules.FirstOrDefault(m => m.Entry == "Snowflake.Framework.Tests.InvalidComposable.dll");
.Modules.FirstOrDefault(m => m.Entry == "Snowflake.Tests.InvalidComposable.dll");
Assert.NotNull(module);

var assemblyComposer = new AssemblyComposer(container, container.Get<IModuleEnumerator>());
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit d5eb772

Please sign in to comment.