public void Remove() { var sut = new StateSerializer(new Dictionary<string, string>()); sut["foo"] = "bar"; Assert.IsTrue(sut.Remove("foo")); Assert.IsFalse(sut.ContainsKey("foo")); }