diff --git a/Tests/Cosmos.Compiler.Tests.Bcl/System/Collections/Generic/DictionaryTest.cs b/Tests/Cosmos.Compiler.Tests.Bcl/System/Collections/Generic/DictionaryTest.cs index 0cc29aa5e..4e23dc671 100644 --- a/Tests/Cosmos.Compiler.Tests.Bcl/System/Collections/Generic/DictionaryTest.cs +++ b/Tests/Cosmos.Compiler.Tests.Bcl/System/Collections/Generic/DictionaryTest.cs @@ -15,10 +15,27 @@ namespace Cosmos.Compiler.Tests.Bcl.System.Collections.Generic { {"echo", "ECHO"}, {"reboot", "REBOOT" }, - {"shutdown", "SHUTDOWN"} + {"shutdown", "SHUTDOWN"}, + {"integer", 500} }; - Assert.IsTrue(commands.ContainsKey("echo"), "Dictionary ContainsKey does not work"); + Assert.IsTrue(commands.ContainsKey("echo"), "Dictionary ContainsKey does not work1"); + Assert.IsFalse(commands.ContainsKey("musterror"), "Dictionary ContainsKey does not work 2"); + + + + //String test + Assert.IsTrue((string)commands["echo"] == "ECHO", "Dictionary string not work"); + commands["echo"] = "notEcho"; + Assert.IsTrue((string)commands["echo"] == "notEcho", "Dictionary string been reset not working"); + + + //Integer test + Assert.IsTrue((int)commands["integer"] == 500, "Dictionary integer not working"); + commands["integer"] = 321; + Assert.IsTrue((int)commands["integer"] == 321, "Dictionary integer been reset not working"); + + } } } diff --git a/source/Cosmos.System.Plugs/Cosmos.System.Plugs.csproj b/source/Cosmos.System.Plugs/Cosmos.System.Plugs.csproj index c98af5987..fa36e2011 100644 --- a/source/Cosmos.System.Plugs/Cosmos.System.Plugs.csproj +++ b/source/Cosmos.System.Plugs/Cosmos.System.Plugs.csproj @@ -88,6 +88,7 @@ + diff --git a/source/Cosmos.System.Plugs/System/Collections/Generic/EqualityComparerImpl.cs b/source/Cosmos.System.Plugs/System/Collections/Generic/EqualityComparerImpl.cs index d733871fd..1660ed362 100644 --- a/source/Cosmos.System.Plugs/System/Collections/Generic/EqualityComparerImpl.cs +++ b/source/Cosmos.System.Plugs/System/Collections/Generic/EqualityComparerImpl.cs @@ -9,6 +9,7 @@ namespace Cosmos.System.Plugs.System.Collections.Generic { public static EqualityComparer CreateComparer() { + throw new Exception("Create comparer not yet implemented!"); } }