public void TestRemovedSetMonitorValues() { var monitor = TestMonitor; var valueToRemove = InitialValues.FirstOrDefault(); Assert.IsNotNull(valueToRemove); AssertStartup(monitor); AssertValueRemove(monitor, valueToRemove.Key); const int newKey = 5; const string newVal = "Value5"; const string newValChanged = "ValueChanged5"; AssertValueAdd(monitor, newKey, newVal); AssertValueChange(monitor, newKey, newValChanged); Assert.IsTrue(monitor.Stop()); }
public void TestSetMonitorRemovedValue() { var service = BuildTestSetMonitorService <TestSetMonitor>(); Assert.IsTrue(service.Start()); var removedItem = InitialValues.FirstOrDefault(); Assert.IsNotNull(removedItem); var itemToRemove = removedItem.Key; AssertRemovedValue(service, itemToRemove); const int newKey = 15; const string newInitValue = "Value15"; const string newChangedValue = "Changed15"; AssertAddedValue(service, newKey, newInitValue); AssertChangedValue(service, newKey, newChangedValue); Assert.IsTrue(service.Stop()); }