diff --git a/tests/Microsoft.Bot.Builder.Dialogs.Tests/ObjectPathTests.cs b/tests/Microsoft.Bot.Builder.Dialogs.Tests/ObjectPathTests.cs index 5dd1acc4b..e7d4d95ae 100644 --- a/tests/Microsoft.Bot.Builder.Dialogs.Tests/ObjectPathTests.cs +++ b/tests/Microsoft.Bot.Builder.Dialogs.Tests/ObjectPathTests.cs @@ -494,6 +494,8 @@ namespace Microsoft.Bot.Builder.Dialogs.Tests ObjectPath.SetPathValue(test, "foo", new { Bar = 15, Blat = "yo" }); ObjectPath.SetPathValue(test, "x.a[1]", "yabba"); ObjectPath.SetPathValue(test, "x.a[0]", "dabba"); + ObjectPath.SetPathValue(test, "null", null); + ObjectPath.SetPathValue(test, "enum", TypeCode.Empty); Assert.AreEqual(15, ObjectPath.GetPathValue(test, "x.y.z")); Assert.AreEqual("hello", ObjectPath.GetPathValue(test, "x.p")); @@ -504,6 +506,8 @@ namespace Microsoft.Bot.Builder.Dialogs.Tests Assert.AreEqual("yabba", value2); Assert.IsTrue(ObjectPath.TryGetPathValue(test, "x.a[0]", out value2)); Assert.AreEqual("dabba", value2); + Assert.IsFalse(ObjectPath.TryGetPathValue(test, "null", out var nullValue)); + Assert.AreEqual(TypeCode.Empty, ObjectPath.GetPathValue(test, "enum")); // value type tests #pragma warning disable SA1121 // Use built-in type alias