public void TestSimplePolling_GetSet_Success()
        {
            var polling = new SimplePolling();

            polling.Set("Test");

            var result = polling.TryGet();

            Assert.AreEqual("Test", result);
        }
        public void TestSimplePolling_SetGet_And_Then_Get_ReturnsNull()
        {
            var polling = new SimplePolling();

            polling.Set("Test");

            var result = polling.TryGet();

            Assert.AreEqual("Test", result);

            var anotherAttempt = polling.TryGet();

            Assert.IsNull(anotherAttempt);
        }
Beispiel #3
0
 public void Set(string value)
 {
     _simplePolling.Set(value);
 }