53 references to GetValue
Microsoft.Gen.Logging.Generated.Tests (53)
LogMethodTests.cs (28)
92Assert.Equal("Hello", collector.LatestRecord.StructuredState!.GetValue("p1")); 93Assert.Equal("World", collector.LatestRecord.StructuredState!.GetValue("p2")); 100Assert.Equal("Hello", collector.LatestRecord.StructuredState!.GetValue("p1")); 101Assert.Equal("World", collector.LatestRecord.StructuredState!.GetValue("p2")); 754Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("@myevent2")); 755Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("otherevent")); 760Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("@myevent3")); 761Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("otherevent")); 767Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("event.class")); 771Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("class")); 775Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("class")); 780Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("@param")); 833Assert.Equal(dt.ToString(CultureInfo.InvariantCulture), collector.LatestRecord.StructuredState!.GetValue("p0")); 857Assert.Equal("[\"1\",\"2\",\"3\"]", collector.LatestRecord.StructuredState!.GetValue("p1")); 858Assert.Equal("[\"4\",\"5\",\"6\"]", collector.LatestRecord.StructuredState!.GetValue("p2")); 859Assert.Equal("{\"Seven\"=\"7\",\"Eight\"=\"8\",\"Nine\"=\"9\"}", collector.LatestRecord.StructuredState!.GetValue("p3")); 870Assert.Null(collector.LatestRecord.StructuredState!.GetValue("p1")); 875Assert.Equal("[\"1\",\"2\",\"3\"]", collector.LatestRecord.StructuredState!.GetValue("p1")); 880Assert.Null(collector.LatestRecord.StructuredState!.GetValue("class")); 885Assert.Equal("[\"1\",\"2\",\"3\"]", collector.LatestRecord.StructuredState!.GetValue("class")); 890Assert.Equal("[\"1\",\"2\",\"3\"]", collector.LatestRecord.StructuredState!.GetValue("p1")); 897Assert.Equal("[\"1\",\"2\",\"3\"]", collector.LatestRecord.StructuredState!.GetValue("p1")); 902Assert.Null(collector.LatestRecord.StructuredState!.GetValue("p1")); 913Assert.Equal("Formatted!", collector.LatestRecord.StructuredState!.GetValue("p1")); 918Assert.Equal("Formatted!", collector.LatestRecord.StructuredState!.GetValue("p1.P1")); 923Assert.Equal("Converted!", collector.LatestRecord.StructuredState!.GetValue("p1")); 932Assert.Equal(kvp.Value, rol.GetValue(kvp.Key)); 948Assert.Equal(kvp.Value, rol!.GetValue(kvp.Key));
LogPropertiesTests.cs (25)
64Assert.Equal(props.P0.ToString(CultureInfo.InvariantCulture), state!.GetValue("P0")); 65Assert.Equal(props.P1, state!.GetValue("P1")); 81Assert.Equal(props.P0.ToString(CultureInfo.InvariantCulture), state!.GetValue("P0")); 82Assert.Equal(props.P1, state!.GetValue("P1")); 125Assert.Equal(props.P0.ToString(CultureInfo.InvariantCulture), state!.GetValue("p.P0")); 126Assert.Equal(props.P1.ToString(CultureInfo.InvariantCulture), state!.GetValue("p.P1")); 127Assert.Equal(props.P2.ToString(null, CultureInfo.InvariantCulture), state!.GetValue("p.P2")); 128Assert.Equal(props.P3.ToString(), state!.GetValue("p.P3")); 129Assert.Equal(props.P4.ToString(), state!.GetValue("p.P4")); 130Assert.Equal(props.P5.ToString(), state!.GetValue("p.P5")); 131Assert.Equal(props.P6.ToString(), state!.GetValue("p.P6")); 132Assert.Equal(props.P7.ToString(), state!.GetValue("p.P7")); 133Assert.Equal(props.P8.ToString(), state!.GetValue("p.P8")); 134Assert.Equal(props.P9.ToString(), state!.GetValue("p.P9")); 135Assert.Equal(props.P10.ToString(CultureInfo.InvariantCulture), state!.GetValue("p.P10")); 136Assert.Equal(props.P11.ToString(CultureInfo.InvariantCulture), state!.GetValue("p.P11")); 137Assert.Equal(props.P12.ToString(), state!.GetValue("p.P12")); 138Assert.Equal(props.P13.ToString(), state!.GetValue("p.P13")); 139Assert.Equal(props.P14.ToString(), state!.GetValue("p.P14")); 140Assert.Equal(props.P15.ToString(), state!.GetValue("p.P15")); 141Assert.Equal(props.P16.ToString(), state!.GetValue("p.P16")); 142Assert.Equal(props.P17.ToString(), state!.GetValue("p.P17")); 143Assert.Equal(props.P18.ToString(), state!.GetValue("p.P18")); 146Assert.Equal(props.P19.ToString(CultureInfo.InvariantCulture), state!.GetValue("p.P19")); 147Assert.Equal(props.P20.ToString(CultureInfo.InvariantCulture), state!.GetValue("p.P20"));