public void ExceptionSensitivity() { var env = new ConsoleEnvironment(); // Default sensitivity should be unknown, that is, all bits set. Helper(null, MessageSensitivity.Unknown); // If we set it to be not sensitive, then the messages should be marked insensitive, // and so forth. Helper(Contracts.NotSensitive(), MessageSensitivity.None); Helper(Contracts.UserSensitive(), MessageSensitivity.UserData); Helper(Contracts.SchemaSensitive(), MessageSensitivity.Schema); Helper(Contracts.UserSensitive().SchemaSensitive(), MessageSensitivity.UserData | MessageSensitivity.Schema); // Run these same tests with the environment. Helper(env, MessageSensitivity.Unknown); Helper(env.NotSensitive(), MessageSensitivity.None); Helper(env.UserSensitive(), MessageSensitivity.UserData); Helper(env.SchemaSensitive(), MessageSensitivity.Schema); Helper(env.UserSensitive().SchemaSensitive(), MessageSensitivity.UserData | MessageSensitivity.Schema); }