Exemple #1
0
            public BenchmarkToken(string name)
            {
                Name        = name ?? throw new ArgumentNullException(nameof(name));
                TokenString = Tokens.ValidTokens[name];
                TokenBinary = Encoding.UTF8.GetBytes(TokenString);
                var parts = TokenString.Split('.');

                parts[2]           = new string(parts[2].Reverse().ToArray());
                InvalidTokenString = parts[0] + "." + parts[1] + "." + parts[2];
                InvalidTokenBinary = Encoding.UTF8.GetBytes(InvalidTokenString);
            }