public void PackState_WithDocument_CreatesDictionaryEntry() { StoredState expected = new StoredState { State = "yo" }; var actual = MongoBotStateStore.PackState("a", expected); Assert.Same(expected.State, actual["a"]); }
public void PackState_NoDocument_EmptyDictionary() { var actual = MongoBotStateStore.PackState("a", null); Assert.Equal(0, actual.Count); }