コード例 #1
0
        public void PackState_WithDocument_CreatesDictionaryEntry()
        {
            StoredState expected = new StoredState {
                State = "yo"
            };
            var actual = MongoBotStateStore.PackState("a", expected);

            Assert.Same(expected.State, actual["a"]);
        }
コード例 #2
0
        public void PackState_NoDocument_EmptyDictionary()
        {
            var actual = MongoBotStateStore.PackState("a", null);

            Assert.Equal(0, actual.Count);
        }