IronRuby.Tests.Tests.Encoding1 C# (CSharp) Method

Encoding1() private method

private Encoding1 ( ) : void
return void
        private void Encoding1() {
            foreach (var name in preambleEncodingNames) {
                var encoding = Context.GetEncodingByRubyName(name);
                Assert(encoding != null);

                // the encoding must be an identity on ASCII characters:
                Assert(RubyEncoding.AsciiIdentity(encoding));
            }

            foreach (var info in Encoding.GetEncodings()) {
                var encoding = info.GetEncoding();
                
                // doesn't blow up (the method checks itself):
                RubyEncoding.AsciiIdentity(encoding);

                //Console.WriteLine("case " + info.CodePage + ": // " + encoding.EncodingName);
            }

        }
Tests