diff --git a/Tests/Kernels/Cosmos.Compiler.Tests.Bcl/System/Collections/Generic/DictionaryTest.cs b/Tests/Kernels/Cosmos.Compiler.Tests.Bcl/System/Collections/Generic/DictionaryTest.cs index 44ca967db..c11d3fe1f 100644 --- a/Tests/Kernels/Cosmos.Compiler.Tests.Bcl/System/Collections/Generic/DictionaryTest.cs +++ b/Tests/Kernels/Cosmos.Compiler.Tests.Bcl/System/Collections/Generic/DictionaryTest.cs @@ -100,51 +100,51 @@ namespace Cosmos.Compiler.Tests.Bcl.System.Collections.Generic Assert.IsFalse(dictionary2.TryGetValue("Six", out int val4), "Dictionary.TryGetValue() of not existing key does not work"); } - #region "Dictionary Tests" - { - var dictionary = new Dictionary - { - { 'a', 'a' }, - { 'b', 'b' }, - { 'c', 'c' }, - }; + //#region "Dictionary Tests" + //{ + // var dictionary = new Dictionary + // { + // { 'a', 'a' }, + // { 'b', 'b' }, + // { 'c', 'c' }, + // }; - Assert.IsTrue(dictionary.ContainsKey('a'), "Dictionary ContainsKey does not work1"); - Assert.IsFalse(dictionary.ContainsKey('d'), "Dictionary ContainsKey does not work2"); + // Assert.IsTrue(dictionary.ContainsKey('a'), "Dictionary ContainsKey does not work1"); + // Assert.IsFalse(dictionary.ContainsKey('d'), "Dictionary ContainsKey does not work2"); - Assert.IsTrue(dictionary['a'] == 'a', "Dictionary operator [] does not work"); - dictionary['b'] = 'v'; - Assert.IsTrue(dictionary['b'] == 'v', "Dictionary [] operator (set existing) does not work"); + // Assert.IsTrue(dictionary['a'] == 'a', "Dictionary operator [] does not work"); + // dictionary['b'] = 'v'; + // Assert.IsTrue(dictionary['b'] == 'v', "Dictionary [] operator (set existing) does not work"); - Assert.IsTrue(dictionary.Count == 4, "Dictionary.Count does not work"); - dictionary['d'] = 'd'; - Assert.IsTrue(dictionary['d'] == 'd', "Dictionary [] operator (set not existing) does not work"); + // Assert.IsTrue(dictionary.Count == 4, "Dictionary.Count does not work"); + // dictionary['d'] = 'd'; + // Assert.IsTrue(dictionary['d'] == 'd', "Dictionary [] operator (set not existing) does not work"); - /* We added another key so now Count should be 4 */ - Assert.IsTrue(dictionary.Count == 4, "Dictionary.Count (after new key) does not work"); + // /* We added another key so now Count should be 4 */ + // Assert.IsTrue(dictionary.Count == 4, "Dictionary.Count (after new key) does not work"); - Dictionary.KeyCollection keyColl = dictionary.Keys; + // Dictionary.KeyCollection keyColl = dictionary.Keys; - foreach (var key in keyColl) - { - Assert.IsTrue(key == 'a' || key == 'b' || key == 'c' || key == 'd', "Dictionary.Keys returns invalid key"); - } + // foreach (var key in keyColl) + // { + // Assert.IsTrue(key == 'a' || key == 'b' || key == 'c' || key == 'd', "Dictionary.Keys returns invalid key"); + // } - dictionary.Add('e', 'e'); - /* We added another key so now Count should be 5 */ - Assert.IsTrue(dictionary.Count == 5, "Dictionary.Count (after Added key) does not work"); + // dictionary.Add('e', 'e'); + // /* We added another key so now Count should be 5 */ + // Assert.IsTrue(dictionary.Count == 5, "Dictionary.Count (after Added key) does not work"); - /* Now we remove "5" key, the operation should succeed and Count should be 4 again */ - Assert.IsTrue(dictionary.Remove('e'), "Dictionary.Remove() of existing key does not work"); - Assert.IsTrue(dictionary.Count == 4, "Dictionary.Count (after Removed key) does not work"); + // /* Now we remove "5" key, the operation should succeed and Count should be 4 again */ + // Assert.IsTrue(dictionary.Remove('e'), "Dictionary.Remove() of existing key does not work"); + // Assert.IsTrue(dictionary.Count == 4, "Dictionary.Count (after Removed key) does not work"); - /* Now we remove "6" key, the operation should fail as there is not "6" key */ - Assert.IsFalse(dictionary.Remove('f'), "Dictionary.Remove() of not existing key does not work"); + // /* Now we remove "6" key, the operation should fail as there is not "6" key */ + // Assert.IsFalse(dictionary.Remove('f'), "Dictionary.Remove() of not existing key does not work"); - Assert.IsTrue(dictionary.TryGetValue('a', out char val1), "Dictionary.TryGetValue() of existing key does not work"); - Assert.IsFalse(dictionary.TryGetValue('f', out char val2), "Dictionary.TryGetValue() of not existing key does not work"); - } - #endregion + // Assert.IsTrue(dictionary.TryGetValue('a', out char val1), "Dictionary.TryGetValue() of existing key does not work"); + // Assert.IsFalse(dictionary.TryGetValue('f', out char val2), "Dictionary.TryGetValue() of not existing key does not work"); + //} + //#endregion #region "Dictionary Tests" {