public void GivenAcceptedResource_WhenGettingValue_ThenItReturnsExpectedValue() { var parameters = ProvideConnectorTargetsAndExpected(); ConnectorBase connectorSubject = parameters.Key; IDictionary <MonitoringTarget, object> targetsAndExpected = parameters.Value; Dictionary <HardwareInformation, object> results = new Dictionary <HardwareInformation, object>(); foreach (var target in targetsAndExpected) { results.Add(connectorSubject.GetValue(target.Key), target.Value); } Assert.All(results, r => { Assert.NotNull(r.Key.MainValue); Assert.Equal(r.Key.MainValue, r.Value); }); }