public bool MoveNext() { if (_version != _dictionary._version) { throw CollectionExceptions.InvalidOperation_EnumerationFailedVersion(); } while ((uint)_index < (uint)_dictionary._count) { ref Entry entry = ref _dictionary._entries ![_index++];
public void TestEnumerableDencryption() { string[] word = new string[] { "Tikv", "Mx", "H", "Tfuw" }; string answer = ""; foreach (string item in CollectionExceptions.Dencrypt(word, "abcdefh")) { answer += item; } Assert.AreEqual(answer, "ThisIsATest"); }
public void TestEnumerableEncryption() { string[] word = new string[] { "This", "Is", "A", "Test" }; string answer = ""; foreach (string item in CollectionExceptions.Encrypt(word, "abcdefh")) { answer += item; } Assert.AreEqual(answer, "TikvMxHTfuw"); }