private void LoadUsingOldFormat(string content) { ContentType contentType = (ContentType)System.Enum.Parse(typeof(ContentType), content, false); this.Out = (contentType & ContentType.Out) != 0; this.Error = (contentType & ContentType.Error) != 0; this.Trace = (contentType & ContentType.Trace) != 0; this.LogLevel = (contentType & ContentType.Log) != 0 ? LoggingThreshold.All : LoggingThreshold.Off; this.Labels = (contentType & ContentType.Labels) != 0 ? (contentType & ContentType.LabelOnlyOnOutput) != 0 ? TestLabelLevel.All : TestLabelLevel.On : TestLabelLevel.Off; }
private void LoadUsingOldFormat(string content) { ContentType contentType = (ContentType)System.Enum.Parse(typeof(ContentType), content, false); this.Out = (contentType & ContentType.Out) != 0; this.Error = (contentType & ContentType.Error) != 0; this.Trace = (contentType & ContentType.Trace) != 0; this.LogLevel = (contentType & ContentType.Log) != 0 ? LoggingThreshold.All : LoggingThreshold.Off; this.Labels = (contentType & ContentType.Labels) != 0 ? (contentType & ContentType.LabelOnlyOnOutput) != 0 ? TestLabelLevel.All : TestLabelLevel.On : TestLabelLevel.Off; }