public void GenerateMasterKeyValue_GeneratesCorrectSecret() { // This is how the preliminary system key seed was generated. // "Master01" can be used as the next string literal if this seed // is versioned. The bytes are reversed in an attempt to retain a // common prefix (left-hand data value) for the the seed if changed. ulong expectedSeed = BitConverter.ToUInt64(Encoding.ASCII.GetBytes("Master00").Reverse().ToArray()); Assert.Equal(expectedSeed, SecretGenerator.MasterKeySeed); string secret = SecretGenerator.GenerateMasterKeyValue(); ValidateSecret(secret, SecretGenerator.MasterKeySeed); }