Exemplo n.º 1
0
        public void ItCanSetAndGetlongs()
        {
            long        expected = 123;
            EventHeader sut      = GetSut();

            sut.Set("foo", expected);

            long result = sut.GetLong("foo");

            Assert.Equal(expected, result);
        }
Exemplo n.º 2
0
        public void TryGettingNonExistingValueThrows()
        {
            EventHeader sut = GetSut();

            Assert.Throws <KeyNotFoundException>(() => sut.GetLong("foo"));
        }