37 references to Sensitive
Microsoft.Gen.Logging.Generated.Tests (37)
SensitiveRecordTests.cs (19)
20
Assert.DoesNotContain(SensitiveRecordExtensions.
Sensitive
, logRecord.Message);
22
Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.
Sensitive
, x.Value));
32
Assert.DoesNotContain(SensitiveRecordExtensions.
Sensitive
, logRecord.Message);
34
Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.
Sensitive
, x.Value));
41
var dataToLog = new SensitiveRecordExtensions.RecordWithSensitiveMembers(SensitiveRecordExtensions.
Sensitive
, SensitiveRecordExtensions.
Sensitive
)
43
PropGetSet = SensitiveRecordExtensions.
Sensitive
49
Assert.DoesNotContain(SensitiveRecordExtensions.
Sensitive
, logRecord.Message);
51
Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.
Sensitive
, x.Value));
58
var dataToLog = new SensitiveRecordExtensions.RecordWithSensitiveMembers(SensitiveRecordExtensions.
Sensitive
, SensitiveRecordExtensions.
Sensitive
)
60
PropGetSet = SensitiveRecordExtensions.
Sensitive
66
Assert.DoesNotContain(SensitiveRecordExtensions.
Sensitive
, logRecord.Message);
68
Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.
Sensitive
, x.Value));
75
var dataToLog = new SensitiveRecordExtensions.RecordWithSensitiveMembers(SensitiveRecordExtensions.
Sensitive
, SensitiveRecordExtensions.
Sensitive
)
77
PropGetSet = SensitiveRecordExtensions.
Sensitive
83
Assert.DoesNotContain(SensitiveRecordExtensions.
Sensitive
, logRecord.Message);
85
Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.
Sensitive
, x.Value));
test\Generators\Microsoft.Gen.Logging\TestClasses\SensitiveRecordExtensions.cs (18)
21
[PrivateData] public const string ConstFieldBase =
Sensitive
;
22
[PrivateData] public static string StaticFieldBase =
Sensitive
;
23
[PrivateData] public static string StaticPropBase =>
Sensitive
;
26
[PrivateData] private readonly string _privateFieldBase =
Sensitive
;
27
[PrivateData] private string _privateReadonlyFieldBase =
Sensitive
;
28
[PrivateData] internal string InternalFieldBase =
Sensitive
;
34
[PrivateData] public virtual string PropVirtual =>
Sensitive
;
41
[PrivateData] public const string ConstField =
Sensitive
;
42
[PrivateData] public static string StaticField =
Sensitive
;
43
[PrivateData] public static string StaticProp =>
Sensitive
;
46
[PrivateData] private string PrivateField =
Sensitive
;
47
[PrivateData] internal string InternalField =
Sensitive
;
50
[PrivateData] private string PrivatePropGetSet { get; set; } =
Sensitive
;
51
[PrivateData] internal string InternalPropGetSet { get; set; } =
Sensitive
;
52
[PrivateData] protected string ProtectedPropGetSet { get; set; } =
Sensitive
;
53
[PrivateData] private string PrivatePropGet =>
Sensitive
;
54
[PrivateData] internal string InternalPropGet =>
Sensitive
;
55
[PrivateData] protected string ProtectedPropGet =>
Sensitive
;