51 references to GetValue
Microsoft.Gen.Logging.Generated.Tests (51)
LogMethodTests.cs (28)
93Assert.Equal("Hello", collector.LatestRecord.StructuredState!.GetValue("p1")); 94Assert.Equal("World", collector.LatestRecord.StructuredState!.GetValue("p2")); 101Assert.Equal("Hello", collector.LatestRecord.StructuredState!.GetValue("p1")); 102Assert.Equal("World", collector.LatestRecord.StructuredState!.GetValue("p2")); 755Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("@myevent2")); 756Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("otherevent")); 761Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("@myevent3")); 762Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("otherevent")); 768Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("event.class")); 772Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("class")); 776Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("class")); 781Assert.Equal("42", collector.LatestRecord.StructuredState!.GetValue("@param")); 834Assert.Equal(dt.ToString(CultureInfo.InvariantCulture), collector.LatestRecord.StructuredState!.GetValue("p0")); 858Assert.Equal("[\"1\",\"2\",\"3\"]", collector.LatestRecord.StructuredState!.GetValue("p1")); 859Assert.Equal("[\"4\",\"5\",\"6\"]", collector.LatestRecord.StructuredState!.GetValue("p2")); 860Assert.Equal("{\"Seven\"=\"7\",\"Eight\"=\"8\",\"Nine\"=\"9\"}", collector.LatestRecord.StructuredState!.GetValue("p3")); 871Assert.Null(collector.LatestRecord.StructuredState!.GetValue("p1")); 876Assert.Equal("[\"1\",\"2\",\"3\"]", collector.LatestRecord.StructuredState!.GetValue("p1")); 881Assert.Null(collector.LatestRecord.StructuredState!.GetValue("class")); 886Assert.Equal("[\"1\",\"2\",\"3\"]", collector.LatestRecord.StructuredState!.GetValue("class")); 891Assert.Equal("[\"1\",\"2\",\"3\"]", collector.LatestRecord.StructuredState!.GetValue("p1")); 898Assert.Equal("[\"1\",\"2\",\"3\"]", collector.LatestRecord.StructuredState!.GetValue("p1")); 903Assert.Null(collector.LatestRecord.StructuredState!.GetValue("p1")); 914Assert.Equal("Formatted!", collector.LatestRecord.StructuredState!.GetValue("p1")); 919Assert.Equal("Formatted!", collector.LatestRecord.StructuredState!.GetValue("p1.P1")); 924Assert.Equal("Converted!", collector.LatestRecord.StructuredState!.GetValue("p1")); 961Assert.Equal(kvp.Value, rol.GetValue(kvp.Key)); 977Assert.Equal(kvp.Value, rol!.GetValue(kvp.Key));
LogPropertiesTests.cs (23)
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"));